will.smith3
New Member
I am working on getting good at searching through strings using LEFT, RIGHT, MID, FIND, and SEARCH. But, need more practice at this skill. Here's the issue I am facing...
Given the below string, which is broken up into three parts: 1) A name, which may/may not contain a space, 2) a value in B, KB, or MB, and, 3) number of items in that folder.
"Sent Items 452.5 MB (474,439,198 bytes) 4549"
I have thought about this a few ways and the easiest one that comes to mind is to search from right-left and find the ")" then keep going left to the "B" - since each one will have that. From there I would search until the second space, and return all of that. That's my pseudocode, but I don't know how to write this out into a working formula.
Below is the code I have so far to try and get everything in green.
Which yields...
"Items 452.5 MB (474,439,198 bytes) 4549"
All help is greatly appreciated.
Given the below string, which is broken up into three parts: 1) A name, which may/may not contain a space, 2) a value in B, KB, or MB, and, 3) number of items in that folder.
"Sent Items 452.5 MB (474,439,198 bytes) 4549"
I have thought about this a few ways and the easiest one that comes to mind is to search from right-left and find the ")" then keep going left to the "B" - since each one will have that. From there I would search until the second space, and return all of that. That's my pseudocode, but I don't know how to write this out into a working formula.
Below is the code I have so far to try and get everything in green.
Code:
=RIGHT(A21,LEN(A21)-FIND(")",SUBSTITUTE(A21," ",")")))
Which yields...
"Items 452.5 MB (474,439,198 bytes) 4549"
All help is greatly appreciated.