Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Trouble with DGET & VLOOKUP formulas

I am helping out a doctor with some research and have on one sheet a list of
data (laid out in columns such as patient number, patient name, date of
birth, date of test, test 1 results, etc) and then in the second sheet I have
a table and a graph to display one patient's results.

I want it so that I can just enter the patient's number in and all the
results for that patient come up. I have tried with the DGET and the VLOOKUP
formulas and am having trouble with both; it is returning seemingly 'random'
results no related to what I am looking up.

What is the best method to do this, and what might I be doing wrong?

I have used formula's like this:
=LOOKUP(B3,TESTS!A:A,TESTS!B:B)
and like this
=DGET('Patient Results'!A2:M158,11,A1:A2)

also there is going to be results added continually to these files so there
isn't a definite range; how do you get around that?

thanks heaps!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default Trouble with DGET & VLOOKUP formulas

Hi

One simple method to do it would be to apply DataFilterAutofilter use
dropdown on Patient Name to see just their records.

If you are wanting that data extracted to a second sheet to further
manipulate, use DataAdvanced Filter.

For excellent guidance on how to use Advance Filter, take a look at
Debra Dalgleish's site
http://www.contextures.com/xladvfilter01.html#ExtractWs
--
Regards

Roger Govier


"amethyst" wrote in message
...
I am helping out a doctor with some research and have on one sheet a
list of
data (laid out in columns such as patient number, patient name, date
of
birth, date of test, test 1 results, etc) and then in the second sheet
I have
a table and a graph to display one patient's results.

I want it so that I can just enter the patient's number in and all the
results for that patient come up. I have tried with the DGET and the
VLOOKUP
formulas and am having trouble with both; it is returning seemingly
'random'
results no related to what I am looking up.

What is the best method to do this, and what might I be doing wrong?

I have used formula's like this:
=LOOKUP(B3,TESTS!A:A,TESTS!B:B)
and like this
=DGET('Patient Results'!A2:M158,11,A1:A2)

also there is going to be results added continually to these files so
there
isn't a definite range; how do you get around that?

thanks heaps!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 694
Default Trouble with DGET & VLOOKUP formulas

You could try auto filter this will list the details in summary or you could
use pivot table report using the page to select the person.

Otherwise you need to use vlookup as

[cell b2]=vlookup(a2, 'tests'!$A:$M, column(), false)
copy that across to column m.

you could also use data validation list to select the person.

to do this you need to define a range name for the patients (column a only)
as the list of patients is on the other sheet

and then in data validation select list and enter the range name.


--
Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.


"amethyst" wrote:

I am helping out a doctor with some research and have on one sheet a list of
data (laid out in columns such as patient number, patient name, date of
birth, date of test, test 1 results, etc) and then in the second sheet I have
a table and a graph to display one patient's results.

I want it so that I can just enter the patient's number in and all the
results for that patient come up. I have tried with the DGET and the VLOOKUP
formulas and am having trouble with both; it is returning seemingly 'random'
results no related to what I am looking up.

What is the best method to do this, and what might I be doing wrong?

I have used formula's like this:
=LOOKUP(B3,TESTS!A:A,TESTS!B:B)
and like this
=DGET('Patient Results'!A2:M158,11,A1:A2)

also there is going to be results added continually to these files so there
isn't a definite range; how do you get around that?

thanks heaps!

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
DGet vs VLookup earth21994 Excel Worksheet Functions 3 July 26th 06 09:31 PM
VLOOKUP and DGET to find a value with multiple criterion jaybird2307 Excel Worksheet Functions 8 June 28th 06 03:03 PM
Trouble with formulas kevhatch Excel Discussion (Misc queries) 2 January 23rd 06 01:52 AM
dynamic, double vlookup, match, index, dget?? different workbooks Leslie Excel Worksheet Functions 11 June 27th 05 09:45 PM
At my wit's end! Use DGET or VLOOKUP to select data???? Allen Excel Worksheet Functions 1 March 8th 05 01:48 PM


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

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"