if and or formula
Hi I try to build a formula for 1st row in yellow. I have 2 drop down filters and I would like to get the deadline shown in deadline1 as a result of the lead time and TLT combination.
e.g. Lead time 60 and TLT 105 give me result deadline 15/11/23
this is working with
=IF(AND([Lead Time]1 = "60", [TLT]1 = "105"), [Deadline]6)
But now I'm not sure how to integrate the other combinations in the formula.
Thanks
Best Answer
-
Hi @Christine Menke,
You can use INDEX COLLECT for this.
Rearranging your data slightly to make the ranges a bit easier:
=INDEX(COLLECT(Date1:Date9, [Lead Time]1:[Lead Time]9, [Lead Time]@row, TLT1:TLT9, TLT@row), 1)
You can obviously change these to reflect your row numbers in place of mine, but this will save you having to produced a gigantic nested IF(AND) formula.
Hope this helps, let us know if you have any problems/questions though!
Answers
-
Hi @Christine Menke,
You can use INDEX COLLECT for this.
Rearranging your data slightly to make the ranges a bit easier:
=INDEX(COLLECT(Date1:Date9, [Lead Time]1:[Lead Time]9, [Lead Time]@row, TLT1:TLT9, TLT@row), 1)
You can obviously change these to reflect your row numbers in place of mine, but this will save you having to produced a gigantic nested IF(AND) formula.
Hope this helps, let us know if you have any problems/questions though!
-
Thanks@Nick Korna it works!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.2K Get Help
- 451 Global Discussions
- 155 Industry Talk
- 505 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 81 Community Job Board
- 514 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!