0

I am managing a waitlist spreadsheet with many tab that requires monthly data to be extracted e.g. number of referrals, wait from assessment to intervention in wks etc. People move from the referral tab, to assessment, to intervention, to discharge, with each one adding more relevant columns of info.

I have made several pivot table to bring this together but have encountered an issue I cannot seem to get around. Some of the 'weeks waiting' data in the discharge tab returns as either a -6000 and something or +6000 and something. this is due to them being discharge on referral and the subsequent dates (assessment date, intervention date) not being filled. I cannot seem to exclude just those cells/values from the pivot table, it removes the whole person which I do not want to do. I figured it would be easier to use an IF function and if the cell is +/-6000 it makes it blank, otherwise it leaves it as is. 2 problems here, if the cell is false it changes it to false rather than not changing the cell content. Issue 2, I cant add an extra column to this spreadsheet as it is one that collectively used. I therefore have to add a formula that applies to the cell its in, after the already existing formula of '=ROUNDDOWN((W13-I13)/7,0'.

Basically, I am stumped and think this spreadsheet might be my nemesis (I didn't make it, I'm picking it up from a colleague who left). Any suggestions welcome, even if its an alternative to using pivot tables! I just don't want to have to manually work out this data every 4-5 weeks!

1
  • 2
    Really tough to figure out what's going on with just words. Sample data that is reproducible would help here, including what's wrong and what the desired output should look like.
    – Isolated
    Commented Nov 25, 2020 at 15:20

1 Answer 1

0

A first solution requires you to calculate the week difference twice. Once in the if condition and again for the true case:

=IF(ABS(ROUNDDOWN((W13-I13)/7,0)<6000, ROUNDDOWN((W13-I13)/7,0), "")

This isn't ideal for very large datasets but will probably work just fine. Better though is to look if either of the two dates are blank (assuming the cells are actually felt blank and not 0 due to a formula or with text such as "X" or "n/a"

=IF(OR(ISBLANK(W13),ISBLANK(I13)), "", ROUNDDOWN((W13-I13)/7,0))

Let me know if it works for you by accepting the solution or commenting if it doesn't.

1
  • 1
    You're a godsend, the second formula works and my pivot table make sense again.
    – Jess
    Commented Nov 30, 2020 at 15:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .