Matching with respect to another column?

D

Doug

I have a table in worksheet A, and imported data that is refreshed every half
hour in worksheet B.
I would like to update the data in worksheet A column AB with respect to the
symbols in column P. The data will be pulled from the import data in
worksheet B.
The columns are the same in both worksheet A, and worksheet B to make it
easier.
How can I do this?
 
S

Sam Wilson

Hi,

There are many ways...

1. VLOOKUP - put this in sheet1 column AB2 and drag down:

=VLOOKUP(P2,Sheet2!P:AB,13,false)

2. SUMIF (if you want to add sheet2, column P figures together like a summary)

= SUMIF(Sheet2!P:p,P2,Sheet2!AB:AB)

there are other ways, those two are the easiest.

Sam
 
S

Sam Wilson

Hi Joel,

Yes, I know that - referring to Doug's other post ("macro on a timer") the
query results are stock codes & prices. I've made an assumption that there
will be a 1-1 correspondence.

Sam
 
D

Doug

That works great
--
Thank you!


Sam Wilson said:
Hi,

There are many ways...

1. VLOOKUP - put this in sheet1 column AB2 and drag down:

=VLOOKUP(P2,Sheet2!P:AB,13,false)

2. SUMIF (if you want to add sheet2, column P figures together like a summary)

= SUMIF(Sheet2!P:p,P2,Sheet2!AB:AB)

there are other ways, those two are the easiest.

Sam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top