Hi all,
I'm making a travel plan, where I would like my sheet to calculate when the next destination changes from TODAY(). I've attached a picture and sheet which exemplify the issue at hand.
FrJXxwu.png
Thanks in advance.
Hi all,
I'm making a travel plan, where I would like my sheet to calculate when the next destination changes from TODAY(). I've attached a picture and sheet which exemplify the issue at hand.
FrJXxwu.png
Thanks in advance.
Last edited by Enounce; 05-16-2021 at 05:44 AM.
Will this work for you?
=IF(COUNTIF(B$2:B2,B2)=1,COUNTIF($B$2:$B$20,B2),"")
You may need this if your locale is a European one:
=IF(COUNTIF(B$2:B2;B2)=1;COUNTIF($B$2:$B$20;B2);"")
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
Hi AliGW,
Thanks for the feedback!
The formula goes in a status field that will need to update depending on today(), lookup the destination, find when the destination updates, and then calculate the number of days between the two destinations. Edit: Just tried adding a photo to explain a bit better. So for instance, tomorrow the field would need to show "3", and so forth.
EDucvsM.png
I'm not sure if that made it any clearer, otherwise, let me know.
Last edited by Enounce; 05-16-2021 at 09:20 AM.
Formula =COUNTIF(INDIRECT("B"&MATCH(TODAY(),C:C,0)&":B10000"),INDEX(B:B,MATCH(TODAY(),C:C,0)))
You may need to replace comma with semicolon for Europe
Another optionFormula:Please Login or Register to view this content.
I actually thought this one worked but by coincidence, I typed in the same destination a bit further down which made the count increase, which it ideally shouldn't. It has to "break" whenever a value interrupts the streak.
rao3tNz.png
Unfortunately, same as above. I also suspect Xmatch will cause issues for my travel buddy. He's on an older version.
Thanks for all the suggestions, and sorry for not realizing that destinations could appear multiple times.
Where in your opening post did you state this as a requirement?I typed in the same destination a bit further down which made the count increase, which it ideally shouldn't. It has to "break" whenever a value interrupts the streak.
Provide a larger set of sample data with results mocked up by hand. Make sure it covers all eventualities.
Ok, how aboutFormula:Please Login or Register to view this content.
I agree with you completely, I simply hadn't thought of it at the time of asking, hence my apology.
I really do try to provide all feedback and illustrate through sample data and images. I'll try to do even better next time.
This one works flawlessly. Thanks so much, Fluff13!
My buddy uploaded the sheet to a Google Drive, but apparently, the AGGREGATE function isn't available there. Am I allowed to ask for a Google-proof formula as well here, or should I open a new topic in the other platforms section?
Glad to help & thanks for the feedback.
I don't know much about Google, so cannot help with that.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks