Jul 10 2022 11:55 PM
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, so instead of writing the same number again, I would like to know if there is a possibility to put the corresponding code in D with a formula or something when I write the name in C. And if it's possible, can you tell me how I need to do this, please? Because I'm not an expert :)
Thank you so much!!
Jul 11 2022 12:36 AM
Jul 11 2022 12:48 AM
Jul 11 2022 12:53 AM
Jul 11 2022 01:15 AM
Solution@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.
Jul 11 2022 01:15 AM
Solution@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.