Need to add 1 to the formula

sachi1982

New Member
Joined
May 14, 2015
Messages
30
Office Version
  1. 365
Platform
  1. Windows
hi All ,

could you kindly help me on this formula below. what i want to do is to check the G4 month value with todays month +1 month (meaning this should be 11 since we are in October). How can i do it in the formula. the current formula would not work.

please help.


This is what i thought the formula be but clearly it is wrong.

=IF(TEXT(G4,"mm")>TEXT(TODAY(),"mm")+1,"No Action Required","Check"

Thanks,
s
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
=TEXT(TODAY(),"mm")+1 does indeed equal 11.

Perhaps your error is you are comparing Text instead of Numbers. Try.

=IF(NUMBERVALUE(TEXT(G4,"mm"))>NUMBERVALUE(TEXT(TODAY(),"mm")+1),"No Action Required","Check")
 
Upvote 0
Hi sachi1982,

If the entry in cell G4 is actually a date and not a string that looks like a date, you shouldn't use the TEXT function in this case as it returns strings which can cause calculation issues.

See if this adapted formula does the trick:

=IF(MONTH(G4)>MONTH(TODAY())+1,"No Action Required","Check")

Regards,

Robert
 
Upvote 0
Thanks yes it works but it convert text to numbers. is there a way that i could do that without changing the format type.
 
Upvote 0
Does this formula...

=TEXT(MONTH(G4),"mm")

...actually return the month for the entry in cell G4?
 
Upvote 0
That formula isnt going to behave as expected at the turn of the year. Would this work?

=IF(G4>EOMONTH(TODAY(),1),"No action required","Check")
 
Upvote 0

Forum statistics

Threads
1,215,315
Messages
6,124,207
Members
449,147
Latest member
sweetkt327

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