Forum Discussion

MargotKloeck's avatar
MargotKloeck
Copper Contributor
Jul 11, 2022
Solved

Formula?

Hello, In my Excel document, I use names in column C and a long number in D (which is a special code for every name and belongs to the name). In the same document I sometimes have the same names in C...
  • Riny_van_Eekelen's avatar
    Jul 11, 2022

    MargotKloeck Perhaps you can use the method demonstrated in the attached file.

     

    Sheet1 contains a list of names in A and a lookup formula in B2 copied down a bit. The formula expands its lookup range as you copy it down. That's your starting position as if you would start from scratch.

     

    I copied that list to Sheet2 to demonstrate the next step.

    Name01 is new so the lookup formula doesn't find it in the rows above. Hence a "-". Now, just over-write the formula with the number for Name01. Do that for every name. The next time you enter Name01 in A, the formula in B will pick it up from the rows above it, and so on.

    Just make sure that you always have at least one row with the formula in B, so that you can copy it down when the name list grows.

Resources