Match/VlookUp using results from a Left/Right combination

cunningAce

Board Regular
Joined
Dec 21, 2017
Messages
91
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have in cell B4, 201814, formatted as number.

I am using the following combination of Left & Right to change the number to 201714.

=LEFT(B4,4)-1&RIGHT(B4,2) This gives me the desired result.

I am then using this within a Match or Vlookup formula (both of which return N/A, when the data I am looking up does contain 201714.

Formula example I am using:

=MATCH((LEFT(B4,4)-1&RIGHT(B4,2)),PROJECTIONS!B:B,0)

or

=VLOOKUP((LEFT(B4,4)-1&RIGHT(B4,2)),PROJECTIONS!B:D,3,0)

both returning N/A

Any help much appreciated.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
because your left/right turned the number to text, try this to turn it back to number

=(LEFT(B4,4)-1&RIGHT(B4,2))*1
 
Upvote 0
Hi,

I have in cell B4, 201814, formatted as number.

I am using the following combination of Left & Right to change the number to 201714.

=LEFT(B4,4)-1&RIGHT(B4,2) This gives me the desired result.

BTW =LEFT(B4,4)-1&RIGHT(B4,2) effectively is to take away 100 from B4, right?
 
Last edited:
Upvote 0
As simple as that, Worked perfect thanks.
Noted on your point regarding the minus 100. Much easier :)
 
Upvote 0

Forum statistics

Threads
1,215,461
Messages
6,124,957
Members
449,200
Latest member
indiansth

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