IF Function Queston

al97233

Board Regular
Joined
Nov 13, 2006
Messages
71
I currently have the following formula:
=IF($X$41<10,$X$43*AG70*$V$62,IF($X$41>9,$X$43*AG70*$V$63))

I would like to add a formula that if $X$43 is less than 1 use $CG$43 (this cell contains a sum of other cells). If $X$43 is greater than 1 than use the formula as it is.

Any ideas how i can achieve this?
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Try this

=IF($X$41<10,$X$43*AG70*$V$62,IF($X$43>1,$X$43*AG70*$V$63,$CG$43*AG70*$V$63))
 
Upvote 0
Oops. I have missed a little try this

=IF($X$41<10,$X$43*AG70*$V$62,IF(AND($X$41>9,$X$43>1),$X$43*AG70*$V$63,$CG$43*AG70*$V$63))
 
Upvote 0
=IF($X$41<10,$X$42*AG66*$V$58,IF(AND($X$41>9,$X$42>1),$X$42*AG66*$V$59,$CG$42*AG66*$V$59))

I cannot figure out why the above formula does not seem to work when cell $X$41 is less than 10. If cell $X$42 has a number in it and Cell $X$41 is less than 10 it calculates fine but if $X$42 has no number it will not use the number contained in cell $CG$42. It will use cell $CG$42 if $X$41 is 10 or greater and $X$42 has no number in it.

Help!
 
Upvote 0
=IF($X$41<10,$X$42*AG66*$V$58,IF(AND($X$41>=10,$X$42>1),$X$42*AG66*$V$59,$CG$42*AG66*$V$59))

Your formula does not say anything to the extent of if $X$41<10 and $X$42 is blank, use number contained in $CG$42.

It says if less than 10 do this: $X$42*AG66*$V$58

If greater than or equal to 10 and X42 greater than 0, do this: $X$42*AG66*$V$59,$CG$42*AG66*$V$59
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,626
Members
452,933
Latest member
patv

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