Extracting Data from Table to New Data Table

x_ampl1

Board Regular
Joined
Mar 7, 2012
Messages
126
Dear All

I have attachment workBook
IT has two sheets
1st: Data OT, this has all patients details
2nd: Laboratory results of HCG testing

At last Sheet (HCG) we adding the results of blood testing, according the received patient
for that we are writing the Patient file ID at column A
and blood result at Column B


What I need is to:

Transfer the result from table at HCG file to patient ID corresponding cell at Data OT sheet.

I did this equation
it gives part of data for only one ID:4165

but it missing some readings
and not working with other patients.

this my equation:
HTML:
=IF(ROWS(E$5:E5)<=(SUMPRODUCT(--($A$5:$A$10000=A5),--($F$5:$F$10000=1))),INDEX(HCGResult,SMALL(IF(HCGfile=A5,ROW(HCGResult)-ROW(HCG!$B$2)+1),ROWS(E$5:E5))),"")

******** src="https://onedrive.live.com/embed?cid=FA4CA7F45EF7A5EC&resid=FA4CA7F45EF7A5EC%214831&authkey=AIJRSoVW-M66gvs&em=2" width="402" height="346" frameborder="0" scrolling="no">*********>

This My file link:
https://onedrive.live.com/redir?res...831&authkey=!AA4eXW2ArsvWH9E&ithint=file,xlsx


I need help to make it functional among all IDs at Whole table.

Thanks All

X_ampl1
 
Last edited:

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Forum statistics

Threads
1,216,098
Messages
6,128,812
Members
449,468
Latest member
AGreen17

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