Excel Help Please
 

MegaSack DRAW - This year's winner is user - rgwb
We will be in touch

Excel Help Please

10 Posts
7 Users
0 Reactions
68 Views
Posts: 53
Free Member
Topic starter
 

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 9:52 am
Posts: 12704
Free Member
 

What is creating your days pending value?

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


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

=today()-A1:A


 
Posted : 21/03/2023 10:06 am
Posts: 3660
Full Member
 

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


 
Posted : 21/03/2023 10:38 am
Posts: 12704
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 10:54 am
Posts: 10854
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 10: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 11:25 am
Posts: 13239
Full Member
 

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


 
Posted : 22/03/2023 11:34 am
Posts: 12704
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 11:43 am
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 12:38 pm
Posts: 3072
Free Member
 

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


 
Posted : 22/03/2023 12:53 pm