Forum Discussion
Jeremy Wilkerson
Apr 20, 2018Copper Contributor
Formula help
I need help creating the formula for cell F3. Stating that if cell D3 is as follows: 1-5=0 6-8=3 9-11=4 12-14=6 15-17=8 18-19=10 20-21=12 22+=15 I'm sure its a simple formula but I have no i...
- Apr 27, 2018
OK, I've updated the formula in the workbook to lookup the accident number instead of the accident type.
Regards
Haytham Amairah
Apr 20, 2018Silver Contributor
Hi Jeremy,
You can use this formula in cell F3:
=LOOKUP(E3,A2:C9)
Please find the attached file.
Regards
Sameh Rafik
Oct 25, 2018Copper Contributor
Hi Haytham,
I actually tried the same formula for the attached sheet, but it does not give the correct output most of the time, I wanted to categorize the C column to different seasons depending on the range of dates, wondering if you can help me :)
Thanks in advance,
Sameh
- Haytham AmairahOct 25, 2018Silver Contributor
Hi Sameh Rafik,
That's because the table of seasons in the Arrays sheet isn't sorted!
It MUST be sorted to get the correct result from the LOOKUP function.
Anyway, I've sorted it for you.
Please find the attached file.
Regards,
Haytham
- Sameh RafikOct 25, 2018Copper ContributorThanks a lot Haytham, that has been very helpful