Combining Formulas

Justinian

Well-known Member
Joined
Aug 9, 2009
Messages
1,557
Office Version
  1. 365
Platform
  1. Windows
How do I combine these two formulas?

=VLOOKUP(A4,Units,2,FALSE)

=MID(A4,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A4&"0123456789")),1)
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Depending on Units first column format, either

(if text)
=VLOOKUP(MID(A4,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A4&"0123456789")),1),Units,2,FALSE)

Or (if number)
=VLOOKUP(0+MID(A4,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A4&"0123456789")),1),Units,2,FALSE)

Hope this helps

M.
 
Upvote 0
The VLOOKUP extracts the unit number on the Units tab and the MID formula extracts just the number of bedrooms in that unit.
 
Upvote 0
This is a big file. Many cannot for security reasons follow a link. Try to show us a small data sample - 5 to 10 rows suffice.

M.
 
Upvote 0
It is not easy without a file or Excel Jeanie.

VLOOKUP on B4 returns Twr2S#1 and the MID formula extracts only the number. I need to combine the formulas.
 
Upvote 0
Select a relevant part of your data (~10 rows). Copy (Ctrl+C) and paste (Ctrl+V) in the forum reply page.

M.
 
Upvote 0
[TABLE="width: 137"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]4308K[/TD]
[TD]L1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]4908K[/TD]
[TD]L2[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]4805J[/TD]
[TD]L1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]1812[/TD]
[TD]L1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,225,754
Messages
6,186,826
Members
453,377
Latest member
JoyousOne

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