30-60 -90 Days - IF Function

Jatli

New Member
Joined
Dec 11, 2017
Messages
3
Hi

I am trying to do a function where if invoice is 30-60 days the cell will say30 - 60 days, if invoice is 60-90 days, cell will say 60 to 90 days and if invoice is over 90 days, cell will say Over 90 Days. Here is the formula I have put it =IF(H3>29,"30-60 Days",IF(H3>59,"60-90 Days",IF(H3>90,"Over 90 Days","")))

It is not working as even when it is over 60 days it will still say 30-60 days. If I put <60 in the first one then cells that are only 1 day old will say 30-60 days. Please help.
 

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)
try it this way...

=IF(H3>90,"Over 90 Days",IF(H3>59,"60-90 Days",IF(H3>29,"30-60 Days","")))
 
Upvote 0
Anther way :

=LOOKUP(H3,{1,61,91},{"30-60 Days","60-90 Days","Over 90 Days"})
 
Last edited:
Upvote 0
mmmm, that's still going to give you 30-60 days if H3 is less than 30...you could rewrite is like

=LOOKUP(H3,{0,30,60,90},{"","30-60 Days","60-90 Days","Over 90 Days"})

maybe
 
Upvote 0
Hello.... I am trying to create a formula to do exactly this, except rather than the cell read "30-60 Days, 60-90 Days, etc I want it to put the Invoice amount in that column.
 
Upvote 0
something like this ?(but a Vlookup is easier to maintain
Excel Formula:
=LOOKUP(H3,{0,10,100,1000},{"small invoice","medium invoice","big invoice","very big invoice"})
 
Upvote 0
something like this ?(but a Vlookup is easier to maintain
Excel Formula:
=LOOKUP(H3,{0,10,100,1000},{"small invoice","medium invoice","big invoice","very big invoice"})
Oh shoot... NO, I am not trying to look something up. I want the invoice amount to appear in the appropriate column based on the date. So an invoice from Dec 1 would now appear in the OVER 30 day column and on Feb 1 would then jump to display in the 60 day column. Sorry for the confusion.
 
Upvote 0
Late to the party but I like the MATCH & CHOOSE approach in column G

Jatli.xlsx
ABCDEFG
1DateMATCHDaysResult
21/1/20215370Over 90 Days
310/7/2021591Over 90 Days
410/8/202149061-90 Days
510/9/202148961-90 Days
611/1/202146661-90 Days
711/6/202146161-90 Days
811/7/202136031-60 Days
911/8/202135931-60 Days
1012/1/202133631-60 Days
1112/6/202133131-60 Days
1212/7/20212300-30 Days
1312/8/20212290-30 Days
141/1/2022250-30 Days
151/6/2022200-30 Days
164/4/20221-88Future Date
Sheet1
Cell Formulas
RangeFormula
C2:C16C2=MATCH(TODAY()-A2,{-99999,0,31,61,91,99999},1)
E2:E16E2=TODAY()-A2
G2:G16G2=CHOOSE(MATCH(TODAY()-A2,{-99999,0,31,61,91,99999},1),"Future Date","0-30 Days","31-60 Days","61-90 Days","Over 90 Days")
 
Upvote 0
Oh shoot... NO, I am not trying to look something up. I want the invoice amount to appear in the appropriate column based on the date. So an invoice from Dec 1 would now appear in the OVER 30 day column and on Feb 1 would then jump to display in the 60 day column. Sorry for the confusion.
Hi Izweifel,

Just match the result to your heading, e.g.

Izweifel.xlsx
ABCDEFGH
1Invoice AmountDate0-30 Days31-60 Days61-90 DaysOver 90 Days
2$ 74.001/1/2021 $ 74.00
3$ 111.0010/7/2021 $ 111.00
4$ 148.0010/8/2021 $ 148.00
5$ 185.0010/9/2021 $ 185.00
6$ 222.0011/1/2021 $ 222.00
7$ 259.0011/6/2021 $ 259.00
8$ 296.0011/7/2021 $ 296.00
9$ 333.0011/8/2021 $ 333.00
10$ 370.0012/1/2021 $ 370.00
11$ 407.0012/6/2021 $ 407.00
12$ 444.0012/7/2021$ 444.00
13$ 481.0012/8/2021$ 481.00
14$ 518.001/1/2022$ 518.00
15$ 555.001/6/2022$ 555.00
16$ 592.004/4/2022
Sheet1
Cell Formulas
RangeFormula
E2:H16E2=IF(CHOOSE(MATCH(TODAY()-$B2,{-99999,0,31,61,91,99999},1),"Future Date","0-30 Days","31-60 Days","61-90 Days","Over 90 Days")=E$1,$A2,"")
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,187
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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