Attempting to auto generate ID names based on uncertain parameters

avc0002

New Member
Joined
May 5, 2015
Messages
10
hello everyone hope all is well,

Background:
I need to create unique IDs for inspection locations based on known parameters
The amount created is different on every project but the naming convention is the same for all.

I want to be able to input the number of buildings and then automatically generate a complete list of everything needed to inspect. I assume its some sort of array formula. I guess I'll let you that know more tell me haha.


Naming Convention:
I only need to add info where the # is.

Stairs:
S - B# - S#
Stair - Building # - Stair #

Landings:
L - B# - F# - S#
Landing - Building # - Floor # - Stair #

Walkways:
W - B# - F# - W#
Walkway - Building # - Floor # - Walkway #


Yellow cells are the only cells where I'll be inputting information.
Green cells are where the output would go. (I could only copy a sample in the mini sheet but it would extend further down for as many as needed)

I'd like to input the number of buildings and the amount of stairs, landings, and walkways and all of the names be created automatically.


Hopefully this makes sense. If it doesn't I'll do my best to clarify.


82278 - Chino Hills - DB.xlsx
BCDHIJKLMNOPQRSTUV
3Stairs 52Landings 148Walkways66
4Building #TypeBldg. TypeQty.DescriptionBldg. TypeAmountTotalBldg. TypeAmountTotalBldg. TypeAmountTotal
5A-011113122616781226
6A-02124214214200
7A-03131322366300
8A-04142448412244816
9A-051535412512365824
10A-061       
11A-072     
12A-081     
13A-092     
14A-101     
15A-111     
16A-121     
17A-131     
18A-141     
19A-152     
20A-161     
21A-172     
22B-013     
23B-024     
24B-034     
25B-045 
26B-055 S - B# - S#L - B# - F# - S#W - B# - F# - W#
27B-065 
28 S - BA-01 - S1L - BA-01 - F2 - S1W - BA-01 - F2 - W1
29 S - BA-01 - S2L - BA-01 - F2 - S2W - BA-01 - F3 - W1
30 S - BA-02 - S1L - BA-01 - F2.5 - S1W - BA-02 - F2 - W1
31 S - BA-02 - S2L - BA-01 - F2.5 - S2W - BA-02 - F3 - W1
32 S - BA-03 - S1L - BA-01 - F3 - S1W - BA-03 - F2 - W1
33 S - BA-03 - S2L - BA-01 - F3 - S2W - BA-03 - F3 - W1
34 S - BA-04 - S1L - BA-02 - F2 - S1W - BA-04 - F2 - W1
35 S - BA-04 - S2L - BA-02 - F2 - S2W - BA-04 - F3 - W1
36 S - BA-05 - S1L - BA-02 - F2.5 - S1W - BA-05 - F2 - W1
37 S - BA-05 - S2L - BA-02 - F2.5 - S2W - BA-05 - F3 - W1
38 S - BA-06 - S1L - BA-02 - F3 - S1W - BA-06 - F2 - W1
39 S - BA-06 - S2L - BA-02 - F3 - S2W - BA-06 - F3 - W1
40 S - BA-07 - S1L - BA-03 - F2 - S1W - BA-08 - F2 - W1
41 S - BA-08 - S1L - BA-03 - F2 - S2W - BA-08 - F3 - W1
42 S - BA-08 - S2L - BA-03 - F2.5 - S1W - BA-10 - F2 - W1
43 S - BA-09 - S1L - BA-03 - F2.5 - S2W - BA-10 - F3 - W1
44 S - BA-10 - S1L - BA-03 - F3 - S1W - BA-11 - F2 - W1
45 S - BA-10 - S2L - BA-03 - F3 - S2W - BA-11 - F3 - W1
46 S - BA-11 - S1L - BA-04 - F2 - S1W - BA-12 - F2 - W1
47 S - BA-11 - S2L - BA-04 - F2 - S2W - BA-12 - F3 - W1
48 S - BA-12 - S1L - BA-04 - F2.5 - S1W - BA-13 - F2 - W1
49 S - BA-12 - S2L - BA-04 - F2.5 - S2W - BA-13 - F3 - W1
50 S - BA-13 - S1L - BA-04 - F3 - S1W - BA-14 - F2 - W1
51 S - BA-13 - S2L - BA-04 - F3 - S2W - BA-14 - F3 - W1
52 S - BA-14 - S1L - BA-05 - F2 - S1W - BA-16 - F2 - W1
53 S - BA-14 - S2L - BA-05 - F2 - S2W - BA-16 - F3 - W1
54 S - BA-15 - S1L - BA-05 - F2.5 - S1W - BB-02 - F2 - W1
55 S - BA-16 - S1L - BA-05 - F2.5 - S2W - BB-02 - F2 - W2
56 S - BA-16 - S2L - BA-05 - F3 - S1W - BB-02 - F2 - W3
57 S - BA-17 - S1L - BA-05 - F3 - S2W - BB-02 - F2 - W4
58 S - BB-01 - S1L - BA-06 - F2 - S1W - BB-02 - F3 - W1
Backup
Cell Formulas
RangeFormula
N3,V3,R3N3=IF(SUM(N5:N14)=0,"-",SUM(N5:N14))
R5:R10,N5:N24,V5:V10R5=IFERROR(Q5*$I5,"")
L5:L24,T5:T24,P5:P24L5=IF($H5=0,"",$H5)
I5:I58I5=IF(COUNTIF($C$5:$C$102,H5)=0,"",COUNTIF($C$5:$C$102,H5))
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Forum statistics

Threads
1,223,888
Messages
6,175,206
Members
452,618
Latest member
Tam84

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top