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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,223,991
Messages
6,175,820
Members
452,672
Latest member
missbanana

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