I have excel application, which contains 3 sheets (Sheet1, Sheet2 and Sheet3). Sheet 1 contains ID & Name columns and Sheet2 also have same ID & NAME, whereas Sheet1 will be static and Sheet2 is dynamic.
I want to fetch data from Sheet1 or Sheet2. When someone enter ID in sheet3 then i should pull the corresponding name from Sheet1 or Sheet2 and put it in sheet3.
I ma new to vba or excel formula. I dont know where i need to start.
Sheet1
+-----------+
| ID | Name |
+-----------+
| 1 | AAAA |
+-----------+
| 2 | BBBB |
+-----------+
| 3 | CCCC |
+-----------+
Sheet2
+-----------+
| ID | Name |
+-----------+
| 7 | SSSS |
+-----------+
| 9 | XXXX |
+-----------+
If I enter 3 in Sheet3, ID column then it should populate the CCCC in Name column.
ID
unique per both sheets (1 and 2)? – FaneDuru=IFERROR(VLOOKUP(A2,Sheet1!$A:$B,2,FALSE),VLOOKUP(A2,Sheet2!$A:$B,2,FALSE))
– jamheadart