Left find with multiply and less than

julhs

Active Member
Joined
Dec 3, 2018
Messages
407
Office Version
  1. 2010
Platform
  1. Windows
On the face of it this is really basic stuff!!
When; B3 = 2 and B4 = 0.9
And B5 is; =IF(b3*b4<1,"rr",B3*B4) result = 1.8

Not sure if it’s my imagination that when stored as TEXT and using the LeftFind function a different logic is needed?
For the life of me I just can’t get it to work, more importantly can’t figure out where I’m going wrong!

Because when numbers are stored as text eg;
B7; = 2 x xx (as text)
B8; = 0.9 x xx (as text)
And using LeftFind on B7 and B8, results are this;
B10 is; = ((LEFT(B7,FIND(" ",B7)-1)+0) = 2
B11 is; = ((LEFT(B11,FIND(" ",B11) -1)+0) = 0.9
B12 is; =((LEFT(B7,FIND(" ",B7)-1)+0)*((LEFT(B8,FIND(" ",B8)-1)+0) = 1.8
But when I then introduce an “If” & “<” argument, despite my attempts I simply can’t I get the formula to function, I get “to many arguments”, “missing parenthesis”, “formula contains an error” etc, etc
Eg;
=if((LEFT(B7,FIND(" ",B7)-1)+0)*((LEFT(B8,FIND(" ",B8)-1)+0)>1,((LEFT(B7,FIND(" ",B7)-1)+0)*((LEFT(B8,FIND(" ",B8)-1)+0)),"rr")))

00 Fert-Chemical-Nozzle calculator Currant.xlsm
ABCD
1
2ISTEXT
32FALSE
40.9FALSE
5Result1.8FALSE
6
72 x xxTRUE
80.9 x xxTRUE
9
102FALSE
110.9FALSE
12Result1.8FALSE
13
Sheet26
Cell Formulas
RangeFormula
C10:C12,C7:C8,C3:C5C3=ISTEXT(B3)
B5B5=IF(B3*B4<1,"rr",B3*B4)
B10:B11B10=((LEFT(B7,FIND(" ",B7)-1)+0))
B12B12=((LEFT(B7,FIND(" ",B7)-1)+0)*((LEFT(B8,FIND(" ",B8)-1)+0)))
 
Last edited:

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
As you are multiplying the numbers, you don't need to add 0, you can just use
Excel Formula:
=IF(LEFT(B7,FIND(" ",B7)-1)*LEFT(B8,FIND(" ",B8)-1)>1,LEFT(B7,FIND(" ",B7)-1)*LEFT(B8,FIND(" ",B8)-1),"rr")
 
Upvote 0
Solution
Lighting fast response Fluff, thank you.
Perfect; you solved in minutes something I’d been puzzling over for hours
 
Upvote 0
Glad we could help & thanks for the feedback
 
Upvote 0
Sorry I’m now utterly confused.
Can both be right?

To take out the 0 and leave the -1
Or leave the 0 and take out the -1
 
Upvote 0
You can take them out, or leave them as you wish. You don't need either the +0 or -1 as you are multiplying the results.
 
Upvote 0
You can do just this:

Book3.xlsx
B
72 x xx
80.9 x xx
9
10
11
121.8
Sheet949
Cell Formulas
RangeFormula
B12B12=IF(LEFT(B7,FIND(" ",B7))*LEFT(B8,FIND(" ",B8))>1,LEFT(B7,FIND(" ",B7))*LEFT(B8,FIND(" ",B8)),"rr")
 
Upvote 0
Looking at both your examples, it's safe to say that my attempt had the parenthesis all wrong, with or without the -1 or +0
 
Upvote 0
If you were to leave the +0 and -1 in the formula, it should look like this:

Excel Formula:
=IF((LEFT(B7,FIND(" ",B7)-1)+0)*(LEFT(B8,FIND(" ",B8)-1)+0)>1,(LEFT(B7,FIND(" ",B7)-1)+0)*(LEFT(B8,FIND(" ",B8)-1)+0),"rr")
 
Upvote 0

Forum statistics

Threads
1,214,992
Messages
6,122,631
Members
449,095
Latest member
bsb1122

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top