flyingfree
New Member
- Joined
- Mar 2, 2011
- Messages
- 8
I need to autogenerate a number in a cell when other data in the row is filled out.
Sheet is basically:
Date Site Name several other columns of non relevant data Work Order Number
I need the WO number to be in the following format:
(4 digit site code)-1920-(next number for that site)
I have another sheet with a table in it that shows:
Site Name Site Code
How can I pull the site code from one sheet into the number based on the site name from a previous column entry then add in the fiscal year reference and a numerical count of Work orders for that site?
Thinking of adding a hidden column to change site name to site code then formula in the WO number column to read:
=”C2”,”-1920”,countifs(C:C,site code 1, C :C, site code 2)
Is that the correct use of the countif function? Is there an easier way? Perhaps a VB code with a variable that increases by one everytime the loop is run? We have over 25 site codes.
How can I easily convert the site name to a site code based on the table in the other sheet?
Sheet is basically:
Date Site Name several other columns of non relevant data Work Order Number
I need the WO number to be in the following format:
(4 digit site code)-1920-(next number for that site)
I have another sheet with a table in it that shows:
Site Name Site Code
How can I pull the site code from one sheet into the number based on the site name from a previous column entry then add in the fiscal year reference and a numerical count of Work orders for that site?
Thinking of adding a hidden column to change site name to site code then formula in the WO number column to read:
=”C2”,”-1920”,countifs(C:C,site code 1, C :C, site code 2)
Is that the correct use of the countif function? Is there an easier way? Perhaps a VB code with a variable that increases by one everytime the loop is run? We have over 25 site codes.
How can I easily convert the site name to a site code based on the table in the other sheet?