In column A I have multiple ID numbers, and most of them have duplicates.
In column B I have "Areas" associated with the ID number, but only one ID out of the duplicates has this associated "Area".
This leaves multiple blanks in column B that do not have "Areas" assigned. I need the blank cells in column B to find their matching IDs in column A that have an Area associated with it, and input this data into the blank cell.
My knowledge of Excel is limited, but where there's a will there's a way.
I tried to use CHAT GPT as a way of finding an answer with no result.
=IF(B1="", INDEX(B:B, MATCH(TRUE, (A:A=A2)\*(B:B\<\>""), 0)), B1)
Here is an example of the table that I am trying to create a formula for:
| Column A | Column B |
|---|---|
| 222222 | |
| 222222 | |
| 222222 | Area 1 |
| 555555 | |
| 555555 | Area 2 |
| 777777 | |
| 777777 | |
| 777777 | Area 3 |
Here is how I would like the formula to work:
| Column A | Column B |
|---|---|
| 222222 | Area 1 |
| 222222 | Area 1 |
| 222222 | Area 1 |
| 555555 | Area 2 |
| 555555 | Area 2 |
| 777777 | Area 3 |
| 777777 | Area 3 |
| 777777 | Area 3 |
Any help I can get with this would be greatly appreciated. Thank you!
Try using
XLOOKUP()and the use ofvisible cellsBlanksHomeTab --> GotoEditingGroup --> ClickGo To Specialor press function keyF5click onGoto SpecialVisible Cells Only. (Short Cut is ALT+;)Or as alternative can use this formula as well, if you don't have
XLOOKUP()