VLOOKUP

Rubber Beaked Woodpecker

Board Regular
Joined
Aug 30, 2015
Messages
72
Office Version
  1. 2016
I have the following customer database:
Column A1:A600 - Customers Name
Column B1:B600 - Customers Address
Column C1:C600 - Customers account number

I would like to a formula so that if a account number is entered into D1 it would lookup the database and enter the customers name into E1 and the customers address into F1.
I believe this would require a VLOOKUP formula but cannot get this to work. This has to be a formula and not VBA.

Any advice please :)

Thank you RBW
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
63,989
Office Version
  1. 365
Platform
  1. Windows
How about in E1 dragged across
Excel Formula:
=INDEX(A$1:A$600,MATCH($D1,$C$1:$C$600,0))
 
Solution

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
63,989
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

Rubber Beaked Woodpecker

Board Regular
Joined
Aug 30, 2015
Messages
72
Office Version
  1. 2016

ADVERTISEMENT

Anyway of preventing #N/A error from displaying if the account number is not present?

TIA
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
63,989
Office Version
  1. 365
Platform
  1. Windows
My pleasure.
 

austinb

New Member
Joined
Feb 24, 2021
Messages
11
Office Version
  1. 365
  2. 2013
Platform
  1. Windows
Yup, like
Excel Formula:
=IFNA(INDEX(A$1:A$600,MATCH($D1,$C$1:$C$600,0)),"")
Thank you, I never knew about the IFNA function. It will be very helpful in the future.
 

Forum statistics

Threads
1,144,370
Messages
5,723,960
Members
422,529
Latest member
mbilal429

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