Can anyone help me fix my formula?

brainsponge

New Member
Joined
Nov 5, 2015
Messages
7
=IF(OR(IF(MONTH(B25>B24),C$3+F24,F24),(IF(MONTH(B25=B24),F24,C$3+F24)))

Basically I want a result for the or function, not true or false. However it keeps saying I don't have parenthesis in the right spot. The 2 IF functions are different but the answers for the IF function are the same. Can that be contradicting the formula somehow? And how do I fix it if that is the case?

Thanks in advance.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
So I'm trying to simplify my formula and hope it works. In essence I just need 2 IF functions in 1 cell. My new formula is IF(MONTH(B2>B1),1300+F3,IF(MONTH(B2=B1),F5,1300+F3).
What am I doing wrong this time around?
 
Upvote 0
You are using two cell references in MONTH function and last closing parentheses is missing. It should be like:

Code:
=IF(MONTH(B2)>MONTH(B1),1300+F3,IF(MONTH(B2)=MONTH(B1),F5,1300+F3))

This should remove the error. However, I cannot guarantee correct results as I don't really know what you are trying to accomplish with this formula.
 
Upvote 0
So this formula is wrong. The second IF function doesn't apply because once it sees the first is false, it stops the function right there. I want it to see the first IF function, then when it sees that it is wrong, jump to the next IF function.

EDIT* I think I'm confusing myself more then before. Is there a way to attach a screen shot to show whatI want done?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,534
Messages
6,120,080
Members
448,943
Latest member
sharmarick

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