Parsing Information from a Cell

K

Ken

I have a long list of supplies in Column A. In Column B it shows the range of
their cost ... for example, "79.99 - 89.99". I would like Column C to only
include the low end (79.99) of the cost and Column D to show only the upper
end (89.99). Is their a formula I can type in Columns C & D to extract this
information from Colume B? Each item in Column B is formatted the same way
.... the low price followed by " - " then the upper price. Thanks!
 
F

Fred Smith

The formula in C would be:
=--LEFT(B1,FIND("-",B1)-1)
In D;
=--MID(B1,FIND("-",B1)+1,99)

Another option is to use Text-to-Columns with the dash (-) as the delimiter.

Regards,
Fred
 
A

Ashish Mathur

Hi,

You may use Data > Text to columns. Give the delimited as space and check
the box for other (in the small box, type -
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top