#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default IF Statement???

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.

--
Thomas
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default IF Statement???

=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 Miller" wrote in message
...
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.

--
Thomas



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default IF Statement???

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?
--
Thomas


"Bob Phillips" wrote:

=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 Miller" wrote in message
...
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.

--
Thomas




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 618
Default IF Statement???

"T Miller" wrote in message
...
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.
--
David Biddulph


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default IF Statement???

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.
--
Thomas


"David Biddulph" wrote:

"T Miller" wrote in message
...
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.
--
David Biddulph



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
If statement Dawnvz32 Excel Worksheet Functions 1 October 3rd 06 08:14 AM
SQL concatenation statement CLamar Excel Discussion (Misc queries) 0 June 29th 06 01:58 PM
SET statement tutorial Daminc Excel Discussion (Misc queries) 13 January 17th 06 04:47 PM
If statement Matt Montagliano Excel Discussion (Misc queries) 1 September 8th 05 08:47 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM


All times are GMT +1. The time now is 08:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"