almostanexpert
Board Regular
- Joined
- Apr 20, 2007
- Messages
- 86
Hello All,
Thank you for your time.
I am in need of your assistance in finding a better way, a more efficient non-vba way, of getting the results I get from nesting Ifs. I currently pull data from our main frame and do a visual scan. I developed a crude If statement, =IF(D2=A2,E2,IF(F2=A2,G2,IF(H2=A2,I2,IF(J2=A2,K2,"")))), which as you can see looks at A2 and then goes to the first instance of data and checks to see if it matches, if it does not it goes to the next set of two columns (D:E, F:G, H:I etc...) and compares if the next set proves TRUE. When it does it returns the second column. So if A2 is a match with D2 then it will return what is in E2. This matching will need to occur for approximately 40 sets (80 columns) of information. So as you can see nesting that many Ifs can become a bit difficult.
I have explored Index Match but they don't seem to give me the results I would like and I have also explored SumProduct (my porsonal favorite for complex lookups) but I don't have an intersection to build my formula.
Thank you again.
Thank you for your time.
I am in need of your assistance in finding a better way, a more efficient non-vba way, of getting the results I get from nesting Ifs. I currently pull data from our main frame and do a visual scan. I developed a crude If statement, =IF(D2=A2,E2,IF(F2=A2,G2,IF(H2=A2,I2,IF(J2=A2,K2,"")))), which as you can see looks at A2 and then goes to the first instance of data and checks to see if it matches, if it does not it goes to the next set of two columns (D:E, F:G, H:I etc...) and compares if the next set proves TRUE. When it does it returns the second column. So if A2 is a match with D2 then it will return what is in E2. This matching will need to occur for approximately 40 sets (80 columns) of information. So as you can see nesting that many Ifs can become a bit difficult.
I have explored Index Match but they don't seem to give me the results I would like and I have also explored SumProduct (my porsonal favorite for complex lookups) but I don't have an intersection to build my formula.
Thank you again.