Having trouble with if then statement

hipmrc

New Member
Joined
Feb 25, 2017
Messages
24
Hi All,

I am trying to do the following: in my workbook H34 (It is actually H,I,J as those three fields are merged) is H12 (H,I,J) * 100

I need to write a formula so that if H34 is less thqn $2500 it will multiply the number of locations (H12 x $100), but if H34 is $2500 or more it will enter the number $2500 (in other words it is number of locations H12 X $100 with a cap of $2500.00)

Here is the formula I cam up with that of course does not work. (I don't understand how to put the original H12*100 into the formula)

=H12*100,IF(H34<2500,"G12*100",IF(H34>=2500,"2500",))

If anyone can assist me I will truly appreciate it. :eeek:

Thank you

hipmrc
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
I think this is what you want.
Code:
=if(H12*100<2500,H12*100,2500)
 
Upvote 0
Welcome to the Board!

in other words it is number of locations H12 X $100 with a cap of $2500.00
If that is truly the case, you can simply use:
Code:
=MIN(H12*100,2500)
 
Upvote 0
Or, if 2500 will always be the max...
=min(2500,H12*100)
if H34 is less thqn $2500 it will multiply the number of locations (H12 x $100), but if H34 is $2500 or more it will enter the number $2500

ha, need to refresh more often lol
 
Last edited:
Upvote 0
You are welcome!

It can be easy, when you know a lot of the tricks and different functions!;)
That comes with experience.
 
Upvote 0

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

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