Hi guys
This is quite a confusing question, so I hope I can word it so that you understand.
I am using Excel 2010, and I am looking for an Excel formula (not VBA) to do the following.
On row 1, I have words in columns A - E in a certain order which for this example we can say are
A1: "Excel1"
B1: "Excel2"
C1: "Excel3"
D1: "Excel4"
E1: "Excel 5"
On 'Sheet2', there is a list of data where in column A there is a variety of entries which the user types. Any entry in the A section of 'Sheet2' must be one of the five options on the top row of 'Sheet1' (Excel1, Excel2 etc.)
I am looking for a formula to enter into 'Sheet1' row TWO (A2:E2) that returns the left-most option from A1:E1 IF it appears in the range in 'Sheet2'
So if the user enters 'Excel5' into the column for example, cell A2 will say 'Excel5' as this is the left most option.
If the user enters 'Excel2' and 'Excel3' into the column, this would return 'Excel2' into A2 and 'Excel3' into B2
If the user had all five options somewhere in Sheet2!A:A, A2 to E2 would show exactly what A1 to E1 would show but this may not always happen.
I think I need to use something like =if(countif('Sheet2'!A:A,"Excel1)>0,"Excel1",if(countif('Sheet2'!A:A,"Excel2")>0,"Excel 2"
etc, but I am struggling Can anyone help?
This is quite a confusing question, so I hope I can word it so that you understand.
I am using Excel 2010, and I am looking for an Excel formula (not VBA) to do the following.
On row 1, I have words in columns A - E in a certain order which for this example we can say are
A1: "Excel1"
B1: "Excel2"
C1: "Excel3"
D1: "Excel4"
E1: "Excel 5"
On 'Sheet2', there is a list of data where in column A there is a variety of entries which the user types. Any entry in the A section of 'Sheet2' must be one of the five options on the top row of 'Sheet1' (Excel1, Excel2 etc.)
I am looking for a formula to enter into 'Sheet1' row TWO (A2:E2) that returns the left-most option from A1:E1 IF it appears in the range in 'Sheet2'
So if the user enters 'Excel5' into the column for example, cell A2 will say 'Excel5' as this is the left most option.
If the user enters 'Excel2' and 'Excel3' into the column, this would return 'Excel2' into A2 and 'Excel3' into B2
If the user had all five options somewhere in Sheet2!A:A, A2 to E2 would show exactly what A1 to E1 would show but this may not always happen.
I think I need to use something like =if(countif('Sheet2'!A:A,"Excel1)>0,"Excel1",if(countif('Sheet2'!A:A,"Excel2")>0,"Excel 2"
etc, but I am struggling Can anyone help?