IF statement work working - help

kroach123

New Member
Joined
May 15, 2017
Messages
2
Does anyone know what I am doing wrong with this formula? IF(E5=1,(H5*I5)*G5,(H5*I5))
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Looks fine to me, what's the problem?

PS There is a missing = at the start but I'm assuming that's a typo.
 
Upvote 0
Welcome to the Board!

Is E5 the number 1, or the text value 1?

If text, it would have to be:
Code:
[COLOR=#333333]=IF(E5="1",H5*I5*G5,H5*I5)[/COLOR]
 
Last edited:
Upvote 0
Well it's not 'Wrong' persay, but you don't need all the () on your multiplication operations.

It could just be
=IF(E5=1,H5*I5*G5,H5*I5)

Other than that (and the missing = at the beginning), there is nothing 'wrong' with the formula


Why don't you tell us what the symptoms are...
In what way is it not working for you?
Do you get an error? What error?
Do you get the wrong result? What result DO you get? And how is that different from what you expected?
What are the values of all the cells involved?
 
Upvote 0
I also cant see anything "wrong" there, it could be simplified to this though...
=H5*I5*IF(E5=1,G5,1)
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,935
Members
449,094
Latest member
teemeren

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