Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
JR JR is offline
external usenet poster
 
Posts: 8
Default Populate column based on data in other cells

I am trying to populate "Column E" in "Tab_1" with data from "Tab_2".
These are two tabs in the spreadsheet.

Tab_1:
- Column C, has a value say 12345a.
- Column E is blank.

Tab_2:
- Column A has a list which contains 12345a
- Column B has another value, one for each item in Column A

I want Column E in Tab_1 to be populated with the value in Tab_2
Column B where Tab_1:Column C matches Tab_2:Column A. There will be
only one match as each value in Tab_2 Column A is unique. Was
thinking a Macro could be pasted down Column E in Tab_1 to facilitate
this, but wasn't sure how to code it. Any suggestions?

Thanks.

JR

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Populate column based on data in other cells

=VLOOKUP(C2,'Tab_2!'$A$1:$B$5000,2,0)


copy down



--
Regards,

Peo Sjoblom



"JR" wrote in message
oups.com...
I am trying to populate "Column E" in "Tab_1" with data from "Tab_2".
These are two tabs in the spreadsheet.

Tab_1:
- Column C, has a value say 12345a.
- Column E is blank.

Tab_2:
- Column A has a list which contains 12345a
- Column B has another value, one for each item in Column A

I want Column E in Tab_1 to be populated with the value in Tab_2
Column B where Tab_1:Column C matches Tab_2:Column A. There will be
only one match as each value in Tab_2 Column A is unique. Was
thinking a Macro could be pasted down Column E in Tab_1 to facilitate
this, but wasn't sure how to code it. Any suggestions?

Thanks.

JR



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 440
Default Populate column based on data in other cells

In E1: =VLOOKUP(A1,Tab_2!$A$1:$B$100,2)
This will look to find the value found in Tab_1, A1 in Tab_2 range A1 to
B100 and return the value it finds in column B in Tab_2.
Copy down as necessary

--
Traa Dy Liooar

Jock


"JR" wrote:

I am trying to populate "Column E" in "Tab_1" with data from "Tab_2".
These are two tabs in the spreadsheet.

Tab_1:
- Column C, has a value say 12345a.
- Column E is blank.

Tab_2:
- Column A has a list which contains 12345a
- Column B has another value, one for each item in Column A

I want Column E in Tab_1 to be populated with the value in Tab_2
Column B where Tab_1:Column C matches Tab_2:Column A. There will be
only one match as each value in Tab_2 Column A is unique. Was
thinking a Macro could be pasted down Column E in Tab_1 to facilitate
this, but wasn't sure how to code it. Any suggestions?

Thanks.

JR


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to populate a 3rd column with with data from 1st or 2nd colum leo Excel Discussion (Misc queries) 2 February 3rd 06 12:48 PM
Auto populate several cells based on a selection from drop down li Sheldon Excel Discussion (Misc queries) 3 January 13th 06 08:12 PM
need to populate several cells based on drop down menu selection TerriF Excel Discussion (Misc queries) 1 May 18th 05 10:27 PM
Auto populate cells based on 2 cells division. Chance224 Excel Discussion (Misc queries) 0 April 4th 05 09:35 PM
How to populate column with formula based on value in cell Cameron Stewart Excel Worksheet Functions 2 November 2nd 04 01:36 AM


All times are GMT +1. The time now is 01:33 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"