Extracting multiple records from a database

mdlanclos

New Member
Joined
Aug 10, 2011
Messages
7
I have a database that captures 53 datapoints. One of the reports that I have to produce would include extracting data from only 8 of these datapoints. However, I have to include each of these individual datapoins in the report as opposed to an average, a percentage, etc. Example: My database contains information regarding the transport of infants from a referring faciity to my home facility, and information has been entered into this DB for almost 10 years. I need to run a report that will extract all of the transports for the month of June and report the DOB, weight, Gestational Age, Referring Facility, Transferring Physician, Transferring Diagnoses, Admission Date, and Admission Time. I have a drop-down list for the month, and another drop-down list for the year that the user is to select. Once they select these criteria, they should be able to go to the reporting tab and review this data. Say there are four transports (out of hundreds) for the month of June, only those transports from June, and those datapoints should be reported.

A:A = Month
C:C = Year
G:G = Transferring Physician
O:O = Gestational Age
P:P = Birthweight
T:T = Referral Center
U:U = Transferring Diagnosis
M:M = DOB
BC:BC = Admission Date
AG:AG = Admission Time

I have the month, date and year seperated in the database (month = A:A, day = B:B, year = C:C) for internal purposes...I know is isn't necessary, but thats how my boss wanted it.

I'm quite certain I'm clear as mud.. a formula I had, but was unable to get it to work is...

{=IF(ISERROR(SMALL(IF('Data'!$A:$A='Values'!{month},ROW('Data'!$A:$A),""),ROW($A1))),"",INDEX('Data'!$BI:$BI,SMALL(IF('Data'!$A:$A='Values'{month},ROW('Data'!$A:$A),""),ROW($A1)),0))}
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p> Thanks in advance for your help....</o:p>
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,224,550
Messages
6,179,462
Members
452,915
Latest member
hannnahheileen

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top