Simple Excel if and Function formula help

Jyotirmaya

Board Regular
Joined
Dec 2, 2015
Messages
204
Office Version
  1. 2019
Platform
  1. Windows
I want a formula that If sum of H1 & I1 less than or equal to 2 and if I1 is greater than 0 then H1*1000+I1*500 else H1*1000+I1*500
 
Try this :

=IF(H1>=2,2*1000,IF(AND(H1=0,I1<=2),500*I1,IF(H1=0,500*2,IF(H1+I1<=2,(H1*1000)+(I1*500),IF(H1+I1>2,(H1*1000)+(500*(2-H1)))))))
 
Upvote 0

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Give a try by ctrl+shift+enter instead of just enter with same formula.

Why - it's not meant to be an array formula??

I'm glad admiral100 was able to provide a solution :)

Robert
 
Upvote 0
it's not meant to be an array formula??

Absolutely. Since we are not manipulating array here. But when in a first go I tried your formula with just Enter it failed to provide Output on Else part while it get worked with CSE.
And I was surprised to see this. Also when I go through again with a new worksheet I was able to find virtual result. I think it might be some cell property of Excel Or don't know what else on First time.

Anyways please to see that OP found his solution.:)
 
Upvote 0

Forum statistics

Threads
1,215,325
Messages
6,124,252
Members
449,149
Latest member
mwdbActuary

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