Index/Search - Combine Cells

Jennifer Meyer

New Member
Joined
Apr 24, 2020
Messages
16
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
Hello,
I have a list of Unit numbers and each Unit Number has a "type", each type had different doors/door numbers. I need to combine the Unit number with the Unit Type and the Door #.

I have a approximately 12 different Unit Types
Examples: IL A1, IL A1.1, IL A1.2 etc.
Each Type has doors but all doors are not labeled the same in each type.
Example: Door 4 in Type IL A1 may be a Door 6 in Type IL A1.2

I am looking for a formula to search for the Type and return the correct door #'s like the row with
A1000-B2-1, A1000-B2-2, etc
This is the Unit # (A1000) Unit Type (B2) and Door # (1), (2).

Thank you
Jennifer
 

Attachments

  • Unit Info.PNG
    Unit Info.PNG
    46.5 KB · Views: 6

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hi & welcome to MrExcel.
Are you trying to find the type in B2 in column L & then concatenate the values in col M with the Unit in A2?
 
Upvote 0
Fluff,
Yes, I think. That sounds so easy. Maybe I am over complicating it. I thought I would need to search and index somehow because of there are so many different Types (Column B) and each Type has different Door #'s. There are 192 units so I want to be able to copy a formula and drag it down/across.

I have done the attached formula for other types of projects like this. However my architect provided the data in a different format. Usually I each Unit has the same door #'s (Example: Entry-1, Bedroom-2, Closet-3, etc.) There is no similarities here.

Jennifer
 

Attachments

  • Another Sample.PNG
    Another Sample.PNG
    66 KB · Views: 2
Upvote 0
Ok, how about

+Fluff New.xlsm
ABCDEFGHIJKLM
1
2
3A1000IL B2A1000-b2-1A1000-b2-2A1000-b2-3A1000-b2-4A1000-b2-5A1000-b2-6  IL A1a1-1
4A2000IL B1A2000-b1-1A2000-b1-2A2000-b1-3A2000-b1-4A2000-b1-5A2000-b1-6A2000-b1-7 IL A1a1-2
5IL A1a1-3
6IL A1a1-4
7IL A1a1-5
8IL A1a1-6
9IL B1b1-1
10IL B1b1-2
11IL B1b1-3
12IL B1b1-4
13IL B1b1-5
14IL B1b1-6
15IL B1b1-7
16IL B2b2-1
17IL B2b2-2
18IL B2b2-3
19IL B2b2-4
20IL B2b2-5
21IL B2b2-6
Sheet2
Cell Formulas
RangeFormula
C3:J4C3=IFERROR($A3&"-"&INDEX($M$3:$M$50,AGGREGATE(15,6,(ROW($M$3:$M$50)-ROW($M$3)+1)/($L$3:$L$50=$B3),COLUMNS($C$3:C$3))),"")
 
Upvote 0
WOW! That is way over my knowledge. I have never used AGGREGATE.

My actual spreadsheet has a few more columns so am trying to get it to work in my actual spreadsheet. I'll let you know how it goes.
If you have any pointers as to how I can change it up to have Column L be column AB and Column M be AD, that would be great.

A few of my unit types actually have 19 doors, not just the six in the example I provided.

Thanks again!
Jennifer
 
Upvote 0
How about
=IFERROR($A3&"-"&INDEX($AD$3:$AD$50,AGGREGATE(15,6,(ROW($AD$3:$AD$50)-ROW($AD$3)+1)/($AB$3:$AB$50=$B3),COLUMNS($C$3:C$3))),"")
 
Upvote 0
I got it! Darn spaces! There was a space after my column B data. I have gotten it to work in my entire workbook.

Thank you so much,
Jennifer
 
Upvote 0
Glad it's sorted & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,701
Members
448,980
Latest member
CarlosWin

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