Combine two if formulas?

celquest

New Member
Joined
Aug 4, 2011
Messages
3
Hello all,

I am tracking expiration dates on Insurance Documents. I have two IF formulas that I need to combine.

The Expiration Dates of the Docs are manually entered in Col. G (starting with G3). I figured out how to set the formula so that the spreadsheet will enter the word "EXPIRED" (in Col. H) if the date is today or previous. I would like the same formula to enter the words "THIS MONTH" if the date falls after today, up to the end of the month. Of course, I need the information to automatically update itself based on the days/month we are currently in. If neither of these conditions are met, the cell should stay blank.

I figured out the formulas individually - just don't know how to combine them. Here is what I have:

Expired: IF($G3<=TODAY(), "EXPIRED", "")

Expiring this Month: IF(AND($G3>TODAY(),$G3<
EOMONTH(TODAY(),0)),"THIS MONTH","")

This is prob really simple but I can't figure it out! Any help would be much appreciated. Thanks.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Hi, welcome to the board.

Try this

Code:
=IF(G3<TODAY(),"EXPIRED",IF(MONTH(G3)=MONTH(TODAY()),"THIS p month?,??))<>< TODAY(),"Expired",IF(MONTH(G3)=MONTH(TODAY()),"This month",""))
 
Upvote 0
Many Thanks!

I just tried this but one problem - my years range from 2010 - 2012 so this is also flagging items that are due to expire 8/2012.

Any suggestions?

Thanks again!!
 
Last edited:
Upvote 0
I just figured it out - I added YEAR (duh!) and it works like a charm! :-)

IF(G3<
TODAY(),"Expired",IF(MONTH($G3)*YEAR($G3)=MONTH(TODAY())*YEAR(TODAY()),"This month",""))

Thanks again for your help!!!
 
Upvote 0

Forum statistics

Threads
1,224,602
Messages
6,179,839
Members
452,948
Latest member
UsmanAli786

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