Rchudasama
New Member
- Joined
- Jul 28, 2016
- Messages
- 13
Index and match formula but need it to exclude the blanks
Example
1 A B C D E F G
2 Name 1 Month 2 Month 3 Month 4 Month 5 Month 6 Month
3 a 1.9 1.1 1.8
4 b 5.1 1.0 0 2.8
I put in a formula to bring back the month when "a" or "b" reaches >1 for the first time
Formula results
a 1 Month INDEX($C$2:$H$2,MATCH(TRUE,INDEX(C3:H3>1,0),0) - but should be 4 Month
b 1 Month INDEX($C$2:$H$2,MATCH(TRUE,INDEX(C4:H4>1,0),0)) - but should be 2 month
I noticed that this happened because in "a" has blank cells in 1 month, 2 month and 3 month and "b" has blank cells in 1 month
How do I write the formula to exclude the blanks??
Thanks
Example
1 A B C D E F G
2 Name 1 Month 2 Month 3 Month 4 Month 5 Month 6 Month
3 a 1.9 1.1 1.8
4 b 5.1 1.0 0 2.8
I put in a formula to bring back the month when "a" or "b" reaches >1 for the first time
Formula results
a 1 Month INDEX($C$2:$H$2,MATCH(TRUE,INDEX(C3:H3>1,0),0) - but should be 4 Month
b 1 Month INDEX($C$2:$H$2,MATCH(TRUE,INDEX(C4:H4>1,0),0)) - but should be 2 month
I noticed that this happened because in "a" has blank cells in 1 month, 2 month and 3 month and "b" has blank cells in 1 month
How do I write the formula to exclude the blanks??
Thanks