Special Vlookup

mbendit

New Member
Joined
Dec 14, 2020
Messages
15
Office Version
  1. 365
Platform
  1. Windows
The true/false aspect of the vlookup is giving me some problems. I'd like the lookup to return values based off the first 4 characters in the cell while still returning the entirety of the characters in the cell of the column that I'm referencing. So, in the example below, in my spreadsheet (an upload from a payroll provider) I only have 1295. I'd like the vlookup to return the entire account number 1295-UNBILLED RECEIVABLES.
EX:
1608045919279.png


any help would be appreciated.
 

Some videos you may like

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
53,148
Office Version
  1. 365
Platform
  1. Windows
You said you only had the 1st four characters. :unsure:

Just use the left function to extract the 1st 4 characters from the lookup value.
 

mbendit

New Member
Joined
Dec 14, 2020
Messages
15
Office Version
  1. 365
Platform
  1. Windows
You said you only had the 1st four characters. :unsure:

Just use the left function to extract the 1st 4 characters from the lookup value.
1608053053913.png
1608053087134.png



I may be explaining it backwards.
the image on the left is what comes from my spreadsheet. I need it to format a new column that returns the items on the right.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
53,148
Office Version
  1. 365
Platform
  1. Windows
Did you try what I suggested in post#12?
 

mbendit

New Member
Joined
Dec 14, 2020
Messages
15
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

Did you try what I suggested in post#12?
yes it works perfect- i was hoping to do it without that step, but it is what it is.

Thank you so much for your patience and helpfulness.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
53,148
Office Version
  1. 365
Platform
  1. Windows
What do you mean by "without that step"?
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
53,148
Office Version
  1. 365
Platform
  1. Windows
Did you use the left function in the vlookup or in a separate cell?
 

mbendit

New Member
Joined
Dec 14, 2020
Messages
15
Office Version
  1. 365
Platform
  1. Windows
Did you use the left function in the vlookup or in a separate cell?
i inserted a new column and did the left function, then did my vlookup off of those cells
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
53,148
Office Version
  1. 365
Platform
  1. Windows
You can do it without the helper column like
Excel Formula:
=VLOOKUP(LEFT(A2,4)&"*",'[DV COA 12.1.20.xlsx]Sheet1'!$C:$C,1)
 

Watch MrExcel Video

Forum statistics

Threads
1,123,010
Messages
5,599,330
Members
414,305
Latest member
scarletX

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
Top