RockandGrohl
Well-known Member
- Joined
- Aug 1, 2018
- Messages
- 790
- Office Version
- 365
- Platform
- Windows
Does that even make sense? I'll elaborate...
I want to countif on some criteria, where the criteria range is a list of numbers that represent the lead time of a product booking (where departure is the 20th Feb and book date is the 10th Feb, that's a lead time of 10).
So the criteria range is set, it's just numbers, but the criteria I'm selecting from says "1 week from departure", "2 weeks from departure", "3 weeks from departure" in a list.
What I need to do is basically criteria = left, search " week", which returns 1, then multiply that by 7 so that gives me the number of days, and then determine whether the booking (10 day lead time) falls within 1 week of departure or 2 weeks. As 10 is greater than 7, it goes within 2 weeks..
Is this possible to do in one formula? Lol. Cheers!
I want to countif on some criteria, where the criteria range is a list of numbers that represent the lead time of a product booking (where departure is the 20th Feb and book date is the 10th Feb, that's a lead time of 10).
So the criteria range is set, it's just numbers, but the criteria I'm selecting from says "1 week from departure", "2 weeks from departure", "3 weeks from departure" in a list.
What I need to do is basically criteria = left, search " week", which returns 1, then multiply that by 7 so that gives me the number of days, and then determine whether the booking (10 day lead time) falls within 1 week of departure or 2 weeks. As 10 is greater than 7, it goes within 2 weeks..
Is this possible to do in one formula? Lol. Cheers!