Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Auto populate data from a table into cells after a match is found

I have 2 worksheets one with a table that has 500 rows with 4 coloums of data
for each row as per below

Stock Code Stock Name Margin Required Shortable
AAC AUST AG CO FPO 35% Yes
AAB AUST FPO 40% No

on the other worksheet i would like to enter a Stock code, Say "ACC" into a
cell and then the cells beside it auto populate with the "Stock Name",
"Margin" and "Shortable" values that matches to the "Stock Code" entered.

Any help would be great.

Crash



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 367
Default Auto populate data from a table into cells after a match is found

On Jan 15, 5:21*pm, CrashOz wrote:
I have 2 worksheets one with a table that has 500 rows with 4 coloums of data
for each row as per below

Stock Code *Stock Name * * * * * * Margin Required *Shortable
AAC * * * AUST AG CO FPO * * * *35% * * * * * * * Yes
AAB * * * AUST FPO * * *40% * * * * * * * No

on the other worksheet i would like to enter a Stock code, Say "ACC" into a
cell and then the cells beside it auto populate with the "Stock Name",
"Margin" and "Shortable" values that matches to the "Stock Code" entered.

Any help would be great. *

Crash


You could set it up like that

A1: Inputfield
B1: =indirect("Sheet1!B" & E1)
C1: =indirect("Sheet1!C" & E1)
D1: =indirect("Sheet1!D" & E1)
E1: =MATCH(A1,Sheet1!A:A,0)

hth

Carlo
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Auto populate data from a table into cells after a match is fo

Thanks Carlo, You have got me 95% of the way the E1: =MATCH(A1,Sheet1!A:A,0)
comes up trumps and gives me the row number that is right but i have been
unable to to get B1, C1, D1 to work, all come up with "#REF!"

For example the Formula in B1 is =INDIRECT("Margin List!B" & E1)

i cant get it to work, any idea's? What am i doing wrong?

Crash


"carlo" wrote:

On Jan 15, 5:21 pm, CrashOz wrote:
I have 2 worksheets one with a table that has 500 rows with 4 coloums of data
for each row as per below

Stock Code Stock Name Margin Required Shortable
AAC AUST AG CO FPO 35% Yes
AAB AUST FPO 40% No

on the other worksheet i would like to enter a Stock code, Say "ACC" into a
cell and then the cells beside it auto populate with the "Stock Name",
"Margin" and "Shortable" values that matches to the "Stock Code" entered.

Any help would be great.

Crash


You could set it up like that

A1: Inputfield
B1: =indirect("Sheet1!B" & E1)
C1: =indirect("Sheet1!C" & E1)
D1: =indirect("Sheet1!D" & E1)
E1: =MATCH(A1,Sheet1!A:A,0)

hth

Carlo

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Auto populate data from a table into cells after a match is fo

As you have a space in the sheet name, you have to put apostrophes
around it, like so:

=INDIRECT("'Margin List'!B" & E1)

An alternative approach would be to use INDEX, like this:

=INDEX('Margin List'!B:B,E1)

Hope this helps.

Pete

On Jan 15, 10:36*am, CrashOz
wrote:
Thanks Carlo, You have got me 95% of the way the E1: =MATCH(A1,Sheet1!A:A,0)
comes up trumps and gives me the row number that is right but i have been
unable to to get B1, C1, D1 to work, all come up with "#REF!"

For example the Formula in B1 is =INDIRECT("Margin List!B" & E1)

i cant get it to work, any idea's? What am i doing wrong?

Crash



"carlo" wrote:
On Jan 15, 5:21 pm, CrashOz wrote:
I have 2 worksheets one with a table that has 500 rows with 4 coloums of data
for each row as per below


Stock Code *Stock Name * * * * * * Margin Required *Shortable
AAC * * * AUST AG CO FPO * * * *35% * * * * * * * Yes
AAB * * * AUST FPO * * *40% * * * * * * * No


on the other worksheet i would like to enter a Stock code, Say "ACC" into a
cell and then the cells beside it auto populate with the "Stock Name",
"Margin" and "Shortable" values that matches to the "Stock Code" entered.


Any help would be great. *


Crash


You could set it up like that


A1: Inputfield
B1: =indirect("Sheet1!B" & E1)
C1: =indirect("Sheet1!C" & E1)
D1: =indirect("Sheet1!D" & E1)
E1: =MATCH(A1,Sheet1!A:A,0)


hth


Carlo- Hide quoted text -


- Show quoted text -


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Auto populate data from a table into cells after a match is fo

Thanks Pete & Carlo,
Great stuff

"Pete_UK" wrote:

As you have a space in the sheet name, you have to put apostrophes
around it, like so:

=INDIRECT("'Margin List'!B" & E1)

An alternative approach would be to use INDEX, like this:

=INDEX('Margin List'!B:B,E1)

Hope this helps.

Pete

On Jan 15, 10:36 am, CrashOz
wrote:
Thanks Carlo, You have got me 95% of the way the E1: =MATCH(A1,Sheet1!A:A,0)
comes up trumps and gives me the row number that is right but i have been
unable to to get B1, C1, D1 to work, all come up with "#REF!"

For example the Formula in B1 is =INDIRECT("Margin List!B" & E1)

i cant get it to work, any idea's? What am i doing wrong?

Crash



"carlo" wrote:
On Jan 15, 5:21 pm, CrashOz wrote:
I have 2 worksheets one with a table that has 500 rows with 4 coloums of data
for each row as per below


Stock Code Stock Name Margin Required Shortable
AAC AUST AG CO FPO 35% Yes
AAB AUST FPO 40% No


on the other worksheet i would like to enter a Stock code, Say "ACC" into a
cell and then the cells beside it auto populate with the "Stock Name",
"Margin" and "Shortable" values that matches to the "Stock Code" entered.


Any help would be great.


Crash


You could set it up like that


A1: Inputfield
B1: =indirect("Sheet1!B" & E1)
C1: =indirect("Sheet1!C" & E1)
D1: =indirect("Sheet1!D" & E1)
E1: =MATCH(A1,Sheet1!A:A,0)


hth


Carlo- Hide quoted text -


- Show quoted text -





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Auto populate data from a table into cells after a match is fo

You're welcome.

Pete

On Jan 15, 11:37*am, CrashOz
wrote:
Thanks Pete & Carlo,
Great stuff



"Pete_UK" wrote:
As you have a space in the sheet name, you have to put apostrophes
around it, like so:


*=INDIRECT("'Margin List'!B" & E1)


An alternative approach would be to use INDEX, like this:


=INDEX('Margin List'!B:B,E1)


Hope this helps.


Pete


On Jan 15, 10:36 am, CrashOz
wrote:
Thanks Carlo, You have got me 95% of the way the E1: =MATCH(A1,Sheet1!A:A,0)
comes up trumps and gives me the row number that is right but i have been
unable to to get B1, C1, D1 to work, all come up with "#REF!"


For example the Formula in B1 is =INDIRECT("Margin List!B" & E1)


i cant get it to work, any idea's? What am i doing wrong?


Crash


"carlo" wrote:
On Jan 15, 5:21 pm, CrashOz wrote:
I have 2 worksheets one with a table that has 500 rows with 4 coloums of data
for each row as per below


Stock Code *Stock Name * * * * * * Margin Required *Shortable
AAC * * * AUST AG CO FPO * * * *35% * * * * * * * Yes
AAB * * * AUST FPO * * *40% * * * * * * * No


on the other worksheet i would like to enter a Stock code, Say "ACC" into a
cell and then the cells beside it auto populate with the "Stock Name",
"Margin" and "Shortable" values that matches to the "Stock Code" entered.


Any help would be great. *


Crash


You could set it up like that


A1: Inputfield
B1: =indirect("Sheet1!B" & E1)
C1: =indirect("Sheet1!C" & E1)
D1: =indirect("Sheet1!D" & E1)
E1: =MATCH(A1,Sheet1!A:A,0)


hth


Carlo- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -


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
Using auto-fill to populate a table using data from several tabs Joel Bernard Excel Worksheet Functions 2 January 11th 08 08:46 PM
find, match, and count to populate table Hile Excel Worksheet Functions 0 May 22nd 07 03:59 PM
Auto Populate Cells John Setting up and Configuration of Excel 3 January 7th 07 09:22 AM
Auto populate cells Laus Excel Discussion (Misc queries) 5 December 3rd 06 04:39 PM
Conditional format if cell match found in another range of cells Nolene Excel Worksheet Functions 2 October 5th 06 06:56 AM


All times are GMT +1. The time now is 03:51 AM.

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

About Us

"It's about Microsoft Excel"