Formula to cover two criteria exclusively and together

C_S_M_S

New Member
Joined
Oct 18, 2017
Messages
4
Hopefully a straight forward one for you guys but please can someone help!

I want to do the following;
If column A has "Standard" and the date in Column B is below a chosen date then do one calculation. If column B has a date higher than the chosen date then do a different calculation. However if column A does not have "standard" then use the original calculation regardless of date.

I have tried an IF OR formula but it ignores one criteria and produces the wrong calculation for some of the dates.
I have tried an IF AND formula and this works while the column has "standard" in it, but when this is removed it does not work.

Please help!
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Description is a little vague.
Use this

=IF(A1="Standard",IF(B1 < C1,calculation1,calculation2),original calculation))
(Remove spaces from around < as this forum corrupts the formula when it contains < or > )

where C1 is "chosen date"
 
Last edited:
Upvote 0
Sorry for the vague description - first time using a forum like this! Thank you! It worked - I tried an embedded IF statement yesterday but I missed the final 'if false' part so it wouldn't work!

Thanks again - that is perfect! :)
 
Upvote 0

Forum statistics

Threads
1,223,975
Messages
6,175,746
Members
452,667
Latest member
vanessavalentino83

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