Automatically Copying a cell from another cell but with edits
Hello,
I have 2 columns called " Location" & "Observation report Number". The Location column is a drop-down list of 4 options (WH1, WH2, JS1, JS2). I would like to have the "Observation Report Number" column to auto-populate with the location in addition to a number at the end of it. For example, If I manually enter the first row with a location of "WH1", then the "Observation Report Number" column will automatically populate with " WH1-001". The number at the end will keep on increasing automatically every time I manually select "WH1" location for the subsequent rows (WH1-002,003,etc..).
Is there a formula that would incorporate the above?
Answers
-
You would insert an auto-number column with no special formatting (called "Auto" in this example).
Then in a text/number column you would use
=Location@row + " - " + COUNTIFS(Location:Loaction, @cell = Location@row, Auto:Auto, @cell<= Auto@row)
-
It worked! Thank you very much.
-
Help Article Resources
Categories
Check out the Formula Handbook template!