#1   Report Post  
BetsyW
 
Posts: n/a
Default If function

I'm trying to set up a worksheet to age my accounts payable. I want to
determine 30 days, 60 days, 90 days etc.

My formula is:

=if((today()-b2)30,"30 days overdue")

Where b2 is the cell w/ my invoice date in it, and "30 days overdue" appears
if the test is true. However, I need to insert tests for 60, 90, and 120
days as well. My help index talks about nested if functions, and even gives
an example, but when I try to type it that way, it just gives me an error
message! Help!!

TIA
  #2   Report Post  
 
Posts: n/a
Default

To nest your IFs you would use the following formula:
=IF(TODAY()-B2120,"120 days overdue",IF(TODAY()-B290,"90 days over
due",IF(TODAY()-B260,"60 days overdue",IF(TODAY()-B230,"30 days
overdue","not overdue"))))

An easier way if you only want to see over due in 30 day increments you
could use the following formula:
=IF(TODAY()-B2=30,IF(MOD(TODAY()-B2,30)=0,TODAY()-B2&" days
overdue","overdue but not on 30 day increments."),"not overdue.")

The second one will work for 30,60,90,120, 150, 180, ...

Ryan

"BetsyW" wrote:

I'm trying to set up a worksheet to age my accounts payable. I want to
determine 30 days, 60 days, 90 days etc.

My formula is:

=if((today()-b2)30,"30 days overdue")

Where b2 is the cell w/ my invoice date in it, and "30 days overdue" appears
if the test is true. However, I need to insert tests for 60, 90, and 120
days as well. My help index talks about nested if functions, and even gives
an example, but when I try to type it that way, it just gives me an error
message! Help!!

TIA

  #3   Report Post  
Alan Perkins
 
Posts: n/a
Default

Hi Betsym

Try this instead of nested "If's"

=IF(TODAY()-B2<30,0,INDEX({30,60,90,120},1,MATCH(TODAY()-B2,{30,60,90,120},1)))&"
Days Overdue"

HTH

Alan P.


"BetsyW" wrote in message
...
I'm trying to set up a worksheet to age my accounts payable. I want to
determine 30 days, 60 days, 90 days etc.

My formula is:

=if((today()-b2)30,"30 days overdue")

Where b2 is the cell w/ my invoice date in it, and "30 days overdue"
appears
if the test is true. However, I need to insert tests for 60, 90, and 120
days as well. My help index talks about nested if functions, and even
gives
an example, but when I try to type it that way, it just gives me an error
message! Help!!

TIA



  #4   Report Post  
Leo Heuser
 
Posts: n/a
Default

Betsy

One mo

=IF(TODAY()-B2<30,"", INT((TODAY()-B2)/30)*30&" days overdue.")

--
Best Regards
Leo Heuser

Followup to newsgroup only please.

"BetsyW" skrev i en meddelelse
...
I'm trying to set up a worksheet to age my accounts payable. I want to
determine 30 days, 60 days, 90 days etc.

My formula is:

=if((today()-b2)30,"30 days overdue")

Where b2 is the cell w/ my invoice date in it, and "30 days overdue"

appears
if the test is true. However, I need to insert tests for 60, 90, and 120
days as well. My help index talks about nested if functions, and even

gives
an example, but when I try to type it that way, it just gives me an error
message! Help!!

TIA



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Averaging function Sarah Excel Discussion (Misc queries) 0 January 18th 05 04:09 PM
Excel function help facilities RPS Excel Discussion (Misc queries) 1 December 8th 04 02:36 AM
I cant use englisch function names in a swedich version of excel PE Excel Discussion (Misc queries) 2 December 7th 04 01:00 AM
need to save values from a function before it changes Ron Excel Worksheet Functions 1 October 29th 04 06:29 AM
SUMIF(AND) FUNCTION Saariko Excel Worksheet Functions 9 October 28th 04 11:52 AM


All times are GMT +1. The time now is 04:44 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"