scorpidxls
New Member
- Joined
- Sep 8, 2024
- Messages
- 3
- Office Version
- 365
- Platform
- Windows
Dear all,
I have a table of date and time with group name, and I want to lookup a series of date and time to that table. the table is something like this :
i want to lookup to this table, for instance if one of the data is 02/05/24 12:15:01 then it will return the group code of 4 (using the TRUE range lookup). But I also wanted, if the time isn't in the table range, for instance 02/05/24 17:01:00, it will return "NOT IN GROUP".
If I only using vlookup and using TRUE range lookup, the result for this 02/05/24 17:01:00 will be group code of 6 (because it's still in range between 02/05/24 15:45 and 03/05/24 11:09) but what I wanted is it will return in result "NOT IN GROUP", any suggestion for the formula that I could use without modifying the table? thanks
I have a table of date and time with group name, and I want to lookup a series of date and time to that table. the table is something like this :
i want to lookup to this table, for instance if one of the data is 02/05/24 12:15:01 then it will return the group code of 4 (using the TRUE range lookup). But I also wanted, if the time isn't in the table range, for instance 02/05/24 17:01:00, it will return "NOT IN GROUP".
If I only using vlookup and using TRUE range lookup, the result for this 02/05/24 17:01:00 will be group code of 6 (because it's still in range between 02/05/24 15:45 and 03/05/24 11:09) but what I wanted is it will return in result "NOT IN GROUP", any suggestion for the formula that I could use without modifying the table? thanks