formula or shortcut for auto populating cells

1overpar

New Member
Joined
Jan 26, 2005
Messages
6
i'm trying to find a forumula that automatically populates 2+more cells with corresponding data. For example if i entered "abc" into a cell "john doe" and "25 maple drive" would both automatically populate.

I know how to do it manually but I was wondering if there was a shortcut with an array.

Thank you!

-Tony
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hi,

Not very clear of your exact requirements. If you have a list in say C1:C10 showing possible entries for A1 (i.e. abc in your example) then in D1:D10 you have names (john doe next to abc in your sample) then in E1:E10 you have the address (25 maple drive in your sample). Then in A2 put:

=Vlookup($A$1,$C$1:$E$10,2,false) then in A3:
=Vlookup($A$1,$C$1:$E$10,3,false)

would be one way.

Any way you do it you must have the mappings of code to name and address held somewhere!

James
 
Upvote 0
Thanks for the reply. However I was insufficient in my explanantion.

If say A1 is where I want to enter "abc", then B1 is where "John Doe" would auto populate and C1 is where "25 maple drive" would auto populate. I've created what I think are mappings. G:G would include all of the arbitrary "abc" entries, h:h all the names and i:i the addresses.

I tried the vlookup but wasn't successful. I'm thinking it's because i didn't specify that the name and address were to populate in different cells.

Many thanks for your help!

-Tony
 
Upvote 0
Hi,

VLOOKUP should work. Based on your last post cell B1 formula would be:

=VLOOKUP(A1,G1:I65536,2,false)

That will return column 2 of the relative range G:I (i.e. column H).

What errors are you getting?

James
 
Upvote 0
James,

Thanks a million! It works perfectly! It's very cool. I think I'm just excelliliterate.

Thanks, thanks, thanks! Have a great weekend!

-Tony
 
Upvote 0
Ha.

Good. Glad to hear that you got it working. VLOOKUP is very useful formula. That and SUMIF make life very easy for me.

Thanks. Have a good weekend yourself.

James
 
Upvote 0

Forum statistics

Threads
1,214,806
Messages
6,121,667
Members
449,045
Latest member
Marcus05

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