If month is Ferbuary or June then return a value

NPSHELP

New Member
Joined
Apr 25, 2019
Messages
2
I'm struggling to find the right formula for this so appreciate any help.

I have a monthly budget document which details all my outgoings for the current month. I have a certain bill though that only goes out in February or June. So ideally, I'd like to have a formula which is:

If TODAY is February or June, show £40. If today is NOT February or June, show £0.

Today is A1, £ to be returned will go in A2.

I'm sure it's simple but I'm just not able to return the right value.

Thanks!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hi, how about.

Excel Formula:
=IF(OR(MONTH(A1)={2,6}),A2,0)
 
Upvote 0
Hi & welcome to MrExcel.
How about
Excel Formula:
=IF(OR(MONTH(A1)={1,6}),40,0)
 
Upvote 0
Solution
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,784
Messages
6,121,536
Members
449,037
Latest member
tmmotairi

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