Forum menu
Excel Help Please
 

Excel Help Please

Posts: 53
Free Member
Topic starter
 
[#12762713]

Hi

I have a spreadsheet that i am trying to format the overdue status

A1 has the Date
A2 Has Value either Yes or Pending

A3 has Days overdue (here i want it to show days over due if the value in A2 is "pending" but if the Value is A2 is yes i want it show "0"

ive been ghitting a brick wall for the past hour


 
Posted : 21/03/2023 10:52 am
Posts: 12965
Free Member
 

What is creating your days pending value?

=If(A2="yes",0,whatever your current formula is)


 
Posted : 21/03/2023 11:00 am
Posts: 53
Free Member
Topic starter
 

=today()-A1:A


 
Posted : 21/03/2023 11:06 am
Posts: 3676
Full Member
 

=If(A2=”yes”,0,today()-A1)


 
Posted : 21/03/2023 11:38 am
Posts: 12965
Free Member
 

I think I can improve it a bit.

=If(A2=”yes”,0,if(today()-A1<14,today()-A1,"send the boys round")


 
Posted : 21/03/2023 11:54 am
Posts: 10957
Full Member
 

How reliable is the "yes" bit? Could it be "yes", "yes ", "Yes", "YES" (in a When Harry Met Sally stylee) - if so use

=IF(TRIM(LOWER(A2))="yes",0, TODAY()-A1)


 
Posted : 21/03/2023 11:58 am
Posts: 756
Full Member
 

Excel formulas tend to be less critical regarding capitalisation of text nowadays.

Of course you could always use cell validation to ensure only the prescribed list options are used - possibly overkill.

I like @joshvegas version, just needs a little tweak:

=If(A2=”yes”,0,if(today()-A1<14,"have a quiet word",”send the boys round”))


 
Posted : 21/03/2023 12:25 pm
Posts: 13349
Free Member
 

Who's been looking at our booking spreadsheet @madhouse?


 
Posted : 22/03/2023 12:34 pm
Posts: 12965
Free Member
 

=If(A2=”yes”,0,if(today()-A1<14,“have a quiet word”,”send the boys round”))

I only dabble in excel. You've completed it haven't you.


 
Posted : 22/03/2023 12:43 pm
Posts: 756
Full Member
 

My job means I pretty much live in Excel! I can sort you out a macro to email the offenders with a copy statement attached if you like …


 
Posted : 22/03/2023 1:38 pm
Posts: 3072
Free Member
 

excel, should be banned, get some AI SQL on it


 
Posted : 22/03/2023 1:53 pm