Hello! I have a data set that comes as an ugly output from another system (I'm unable to adjust this output.) I need to extract a UID for each row that will group multiple rows together. Sample set below.
Here is the issue- The UID value shows up in the middle of its data set. Circular Refs for all of my attempts at a solution.
All of the UIDs will begin with a "56". Additionally, there are rows that begin with 56 but are not UIDs. I tried to "ignore" those 56 but telling it to find the word "blind" and keep looking down instead of equaling the value.
I've tried to trick the formula into working in a ton of ways, but I can't figure out a way for the cells that are AFTER the BUID to read up, while all the others read down to find it. I can't avoid the circular reference.
My example formula here has stripped out all of my convoluted attempts so its less for you to sort thru (and to save me the embarrassment of my attempts at a bandaid!)
Thanks so much for your help and thoughts to set this up!
Shalon
Here is the issue- The UID value shows up in the middle of its data set. Circular Refs for all of my attempts at a solution.
All of the UIDs will begin with a "56". Additionally, there are rows that begin with 56 but are not UIDs. I tried to "ignore" those 56 but telling it to find the word "blind" and keep looking down instead of equaling the value.
I've tried to trick the formula into working in a ton of ways, but I can't figure out a way for the cells that are AFTER the BUID to read up, while all the others read down to find it. I can't avoid the circular reference.
My example formula here has stripped out all of my convoluted attempts so its less for you to sort thru (and to save me the embarrassment of my attempts at a bandaid!)
Thanks so much for your help and thoughts to set this up!
Shalon
Row identifier formula.xlsm | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | XXX | ||||||
2 | Purchasing Cost Summary Report by Lot Date . . . . 2/02/22 | ||||||
3 | Time . . . . 17:47:43 | ||||||
4 | 11.24.11 | Formula | |||||
5 | As of 02/02/22 | ||||||
6 | XXX | A18- First BUID- begins with 56 | |||||
7 | XXX | A23- also starts with 56 but isn't a BUID | |||||
8 | Rows 19-25 belong with BUID at A18 | ||||||
9 | XXX | ||||||
10 | Code Description | ||||||
11 | Lot Costs | Desired Output | BUID | Cost Code | |||
12 | 40012.01 Foundation Staking | 560430041 | 560430041 | 40012.01 | |||
13 | 40020.01 Inspection 1 | 560430041 | 560430041 | 40020.01 | |||
14 | 40020.11 Engineering Fees 1 | 560430041 | 560430041 | 40020.11 | |||
15 | 45530.01 Flatwork Labor/Turnkey 1 | 560430041 | 560430041 | 45530.01 | |||
16 | 45550.01 FY Landscape & Irrigation | 560430041 | 560430041 | 45550.01 | |||
17 | 45580.01 Window Treatments | 560430041 | 560430041 | 45580.01 | |||
18 | 560430041 8094 Aldred Way | 560430041 | 560430041 | 560430041 8094 Aldred Way | |||
19 | Code Buyer Options | 560430041 | 560430043 | Code Buyer Options | |||
20 | 13020015 Kitchen Sink - Standard | 560430041 | 560430043 | 13020015 Kitchen Sink - Standard | |||
21 | 39001005 Lam:Mohawk Rustic Hollow DRW12 | 560430041 | 560430043 | 39001005 Lam:Mohawk Rustic Hollow DRW12 | |||
22 | 45002092 Design Finish Package 1 | 560430041 | 560430043 | 45002092 | |||
23 | 56001005 A Better Blind 2" Faux Wood Co | 560430041 | 560430043 | 56001005 A Better Blind 2" Faux Wood Co | |||
24 | 81000051 Solar PPA | 560430041 | 560430043 | 81000051 Solar PPA | |||
25 | OPTION TOTAL | 560430041 | 560430043 | OPTION TOTAL | |||
26 | Code Description | 560430043 | 560430043 | Code Description | |||
27 | Lot Costs | 560430043 | 560430043 | Lot Costs | |||
28 | 40012.01 Foundation Staking | 560430043 | 560430043 | 40012.01 | |||
29 | 40020.01 Inspection 1 | 560430043 | 560430043 | 40020.01 | |||
30 | 40020.11 Engineering Fees 1 | 560430043 | 560430043 | 40020.11 | |||
31 | 45330.01 Appliances Complete | 560430043 | 560430043 | 45330.01 | |||
32 | 45520.01 Fencing | 560430043 | 560430043 | 45520.01 | |||
33 | 45530.01 Flatwork Labor/Turnkey 1 | 560430043 | 560430043 | 45530.01 | |||
34 | 45550.01 FY Landscape & Irrigation | 560430043 | 560430043 | 45550.01 | |||
35 | 45580.01 Window Treatments | 560430043 | 560430043 | 45580.01 | |||
36 | 560430043 8082 Aldred Way | 560430043 | 560430043 | 560430043 8082 Aldred Way | |||
37 | Code Buyer Options | 560430043 | 567650105 | Code Buyer Options | |||
38 | 13020015 Kitchen Sink - Standard | 560430043 | 567650105 | 13020015 Kitchen Sink - Standard | |||
39 | 17000110 Cabinets - Tahoe Color: Painte | 560430043 | 567650105 | 17000110 Cabinets - Tahoe Color: Painte | |||
40 | 39001005 Lam:Mohawk Rustic Hollow DRW12 | 560430043 | 567650105 | 39001005 Lam:Mohawk Rustic Hollow DRW12 | |||
41 | 45002092 Design Finish Package 1 | 560430043 | 567650105 | 45002092 | |||
42 | 56001005 A Better Blind 2" Faux Wood Co | 560430043 | 567650105 | 56001005 A Better Blind 2" Faux Wood Co | |||
43 | 81000020 Solar Lease | 560430043 | 567650105 | 81000020 Solar Lease | |||
44 | OPTION TOTAL | 560430043 | 567650105 | OPTION TOTAL | |||
45 | Code Description | 567650105 | 567650105 | Code Description | |||
46 | Lot Costs | 567650105 | 567650105 | Lot Costs | |||
47 | 40012.01 Foundation Staking | 567650105 | 567650105 | 40012.01 | |||
48 | 40020.01 Inspection 1 | 567650105 | 567650105 | 40020.01 | |||
49 | 40020.11 Engineering Fees 1 | 567650105 | 567650105 | 40020.11 | |||
50 | 40021.01 Electric Utilities | 567650105 | 567650105 | 40021.01 | |||
51 | 45530.01 Flatwork Labor/Turnkey 1 | 567650105 | 567650105 | 45530.01 | |||
52 | 45550.01 FY Landscape & Irrigation | 567650105 | 567650105 | 45550.01 | |||
53 | 567650105 6714 Batten Road | 567650105 | 567650105 | 567650105 6714 Batten Road | |||
54 | Code Buyer Options | 567650105 | 0 | Code Buyer Options | |||
55 | 13020015 Kitchen Sink - Standard | 567650105 | 0 | 13020015 Kitchen Sink - Standard | |||
56 | 17000120 Cabinets - Ellis Color: White | 567650105 | 0 | 17000120 Cabinets - Ellis Color: White | |||
57 | 35001015 Carpet- Chestnut Terrace DR389 | 567650105 | 0 | 35001015 Carpet- Chestnut Terrace DR389 | |||
58 | 39001005 Lam:Mohawk Rustic Hollow DRW12 | 567650105 | 0 | 39001005 Lam:Mohawk Rustic Hollow DRW12 | |||
59 | 45002092 Design Finish Package 1 | 567650105 | 0 | 45002092 | |||
60 | 81000020 Solar Lease | 567650105 | 0 | 81000020 Solar Lease | |||
61 | OPTION TOTAL | 567650105 | 0 | OPTION TOTAL | |||
3 SA0001 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D12:D61 | D12 | =IF(E12="","",IF(ISNUMBER(SEARCH("blind",E12)),D13,IF(LEFT(E12,2)="56",LEFT(E12,9),D13))) |
E12:E61 | E12 | =IF(LEFT('3 SA0001'!$A12,1)="","",IF(LEFT('3 SA0001'!$A12,1)="4",LEFT('3 SA0001'!$A12,8),'3 SA0001'!$A12)) |