Complex Formula

julieavg

New Member
Joined
Feb 14, 2016
Messages
6
Hello Everyone,
I am hoping someone may be able to help me out. I have a list of building addresses and unique building numbers generated from our system. I have another list of opportunities generated from the same system that contain two building numbers for each opportunity. Each opportunity has its own unique opportunity number. I need to lookup the building number from list one and receive a return of all opportunity numbers that contain that building number. I am at a loss and everything I try does not work. Any help or guidance is greatly appreciated. Thank you in advance.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
addressbuildnumopportunitybuildnum1buildnum2helper
addr18opp1961####opp1
addr26opp213
addr34opp338
addr49opp427
addr51opp551
addr63opp672
addr72opp783
addr85opp863
addr97opp945
opp1034
opp11291opp11
opp12591opp12
opp1373
opp1482
opp15911opp15
opp1opp11opp12opp15
choose address 4buildnjum
addr49******
####'=IF(OR(H2=$G$22,I2=$G$22),1,"")this puts a 1 by all rows containing buliding 9
******=OFFSET($A$1,MATCH(D22,$A$2:$A$10,0),1)
now you need to list the opportunity numbers
formula used for this
=IF(J2=1,G2,"")
finally concatenate col L
formula in l18 is
=(L2&L3&L4&L5&L6&L7&L8&L9&L10)&(L11&L12&L13&L14&L15&L16)

<colgroup><col span="6"><col><col span="2"><col span="6"></colgroup><tbody>
</tbody>
 
Upvote 0
I am sorry, but I cannot seem to get this. Can you provide the column header? Are G & H your building numbers within the opportunities? Thank you.
 
Upvote 0
Maybe some additional information may help. I have two tabs in my file. One contains 2 Columns, Building Number (A) and Building Address (B). There are about 250 Building Numbers. Then I have a tab with thousands of Opportunities with 3 columns. One Column is the opportunity number , Building A and Building B. On tab one, I need to get a return of any opportunity numbers that contain the building number. Sometimes buildings are left blank and in this case, I do not need to account for them. Is this something that is possible. I have tried using a range as well with my initial tab of buildings. I have to believe this is possible. Thank you anyone who can point me in the correct direction.
 
Upvote 0
addressbuildnumopportunitybuildnum1buildnum2helperrow1
addr18opp1961####opp1row2
addr26opp213row3
addr34opp338row4
addr49opp427row5
addr51opp551row6
addr63opp672row7
addr72opp783row8
addr85opp863row9
addr97opp945row10
opp1034row11
opp11291opp11row12
col acol bopp12591opp12row13
opp1373row14
opp1482row15
opp15911opp15row16
row17
col dcol gcol hcol Icol jcol kopp1opp11opp12opp15row18
row19
row20
choose address 4buildnjumrow21
addr49******row22
row23
####'=IF(OR(H2=$G$22,I2=$G$22),1,"")this puts a 1 by all rows containing buliding 9
******=OFFSET($A$1,MATCH(D22,$A$2:$A$10,0),1)
now you need to list the opportunity numbers
formula used for this
=IF(J2=1,G2,"")
finally concatenate col L
formula in l18 is
=(L2&L3&L4&L5&L6&L7&L8&L9&L10)&(L11&L12&L13&L14&L15&L16)
THIS IS THE GENERAL APPROACH ONCE YOU AGREE IT DOES WHAT YOU WANT IT CAN BE MODIFIED TO ACCOMMODATE
THE FACT THAT YOU HAVE 2 TABS
YOU CHOOSE AN ADDRESS IN d22 AND THE BUILDING NUMMBER IS FOUND IN G22
THEN ALL OPS WITH 9 IN THEM ARE LABELLED WITH A 1 AND WHERE THERE IS A 1 THE OPP NUMBER APPEARS
FINALLY ALL OP NUMBERS ARE CONCATENATED

<colgroup><col span="6"><col><col span="2"><col span="8"></colgroup><tbody>
</tbody>
 
Upvote 0
addressbuildnumopportunitybuildnum1buildnum2helperrow1
addr18opp1961####opp1row2
addr26opp213row3
addr34opp338row4
addr49opp427row5
addr51opp551row6
addr63opp672row7
addr72opp783row8
addr85opp863row9
addr97opp945row10
opp1034row11
opp11291opp11row12
col acol bopp12591opp12row13
opp1373row14
opp1482row15
opp15911opp15row16
row17
col dcol gcol hcol Icol jcol kopp1opp11opp12opp15row18
row19
row20
choose address 4buildnjumrow21
addr49******row22
row23
####'=IF(OR(H2=$G$22,I2=$G$22),1,"")this puts a 1 by all rows containing buliding 9
******=OFFSET($A$1,MATCH(D22,$A$2:$A$10,0),1)
now you need to list the opportunity numbers
formula used for this
=IF(J2=1,G2,"")
finally concatenate col L
formula in l18 is
=(L2&L3&L4&L5&L6&L7&L8&L9&L10)&(L11&L12&L13&L14&L15&L16)
THIS IS THE GENERAL APPROACH ONCE YOU AGREE IT DOES WHAT YOU WANT IT CAN BE MODIFIED TO ACCOMMODATE
THE FACT THAT YOU HAVE 2 TABS
YOU CHOOSE AN ADDRESS IN d22 AND THE BUILDING NUMMBER IS FOUND IN G22
THEN ALL OPS WITH 9 IN THEM ARE LABELLED WITH A 1 AND WHERE THERE IS A 1 THE OPP NUMBER APPEARS
FINALLY ALL OP NUMBERS ARE CONCATENATED

<tbody>
</tbody>
This is great. Thank you so much. Very much appreciated.
 
Upvote 0

Forum statistics

Threads
1,215,269
Messages
6,123,976
Members
449,138
Latest member
abdahsankhan

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