I have a table in Excel which has a header row and data in cells A2 (text), B2 (text), C2 (text), D2 (text) and E2 (number). A2, B2, C2, D2 are drop downs with different selectable data. E2 is a formula to automatically generate an incremental number each time a new row is added to the table.
I would like to auto generate a reference in cell N2 which is made up from the data in A2, B2, C2, D2, E2. For example:
A2=AppleB2=GreenC2=RipeD2=LocationE2=0001
Desired result in cell N2 would be APP-GRE-RIP-LOC-0001
I've had some success with:
=IF(A2="Apple","APP-"&E2)
The result in cell N2 will be APP-0001. However I'm unsure how to nest these so the result is different based on the data in the cells. And also whether there is a more flexible formula as the data in the drop down lists may be expanded over time.
Thanks in advance!