IF Statement???

T

T Miller

Alright, if I have this in a cell

2000 PK/TH/5000 EA/PK

and I want to multiple the first number (2000) * (5000) to get to 10,000,000
in the cell as the answer. What is the best way to set up this if statement?
The actual number may be smaller but the max would be a fpur digit number.
Any help would be appreciated.
 
B

Bob Phillips

=LEFT(A1,FIND(" ",A1)-1)*MID(A1,FIND("/",A1,FIND("/",A1)+1)+1,FIND("
",A1,FIND("/",A1,FIND("/",A1)+1)+1)-FIND("/",A1,FIND("/",A1)+1)-1)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
T

T Miller

Bob,

If there are no spaces between the any of it i.e. (2000PK/TH/5000EA/PK),
where does that need to be changed in the function?
 
D

David Biddulph

T Miller said:
Alright, if I have this in a cell

2000 PK/TH/5000 EA/PK

and I want to multiple the first number (2000) * (5000) to get to
10,000,000
in the cell as the answer. What is the best way to set up this if
statement?
The actual number may be smaller but the max would be a fpur digit number.
Any help would be appreciated.

Data/ Text to Columns/ Delimited/ by space & by slant character.

then you can multiply the relevant elements.
 
T

T Miller

True, this can be done, but the information from the cell will be scrabled
sometimes, this is one way that I tried but it left some characters in the
cells with the number. Thanks for the response.
 

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