Thread
:
How can I use DGET in Excel with criteria that changes each line?
View Single Post
#
2
Posted to microsoft.public.excel.worksheet.functions
Biff
Posts: n/a
How can I use DGET in Excel with criteria that changes each line?
Hi!
If there are possible duplicates this might be a problem.
Assume Sheet1:
Names in column A, A2:A100
Age in column B, B2:B100
Sex in column C, C2:C100
Same setup in Sheet2 and weight is in column D,D2:D100
Enter this formula in sheet1 D2:
=SUMPRODUCT(--(Sheet2!A$2:A$100=A$2),--(Sheet2!B$2:B$100=B$2),--(Sheet2!C$2:C$100=C$2),Sheet2!D$2:D$100)
Copy down as needed.
Biff
"Werf Nort" <Werf
wrote in message
...
I want to use Excel to work between two worksheets to pull out a value from
one and stick it in the other. I tried using DGET but am I having trouble
because of the Criteria syntax. I want to use the first three columns as
criteria to fill in the third. Below is a very basic example - I'm
talking
about doing this with thousands of lines of Excel data! I'm not sure if I
should be using DGET or something else, but it needs to pull the "weight"
from the second worksheet and put it in the appropriate row in the first
worksheet . . . PLEASE HELP!
Worksheet 1
Name Age Sex Weight
Alex 10 M
Corey 10 M
Elvis 9 M
Worksheet 2
Name Age Sex Weight
Alex 10 M 100
Alex 12 M 130
Brian 11 M 123
Corey 10 M 98
Dan 10 M 109
Elvis 9 M 96
Reply With Quote