Extract data from three sheets from several excel files

abuzahira

New Member
Joined
Feb 5, 2023
Messages
5
Office Version
  1. 365
Platform
  1. Windows
I have data that I want to extract for the daily analysis of our lab, our lab is generating three excel sheets per day for three shifts. Each excel file name is saved as ShiftName+Date
ShiftName(M:morning, A:afternoon, N:night). Each excel file has three sheets with the names CGPI, CGPII, CGPIII.

The results are entered manually by the chemist in the three sheets, the tables are identical in the three sheets but are not organized in a way that could help you to extract the data from easily.

Ref.No.Date issuedTime issuedShiftNo. of 1st SheetPlantNo. of SheetSHEET PAGE 2
A-02-01-2302-01-232230Afternoon1 OF 1III2 OF 2
Liquid & other LiquidLiquid & otherLiquid & otherLiquid & otherLiquid & otherLiquid & otherLiquid & other LiquidLiquid & otherLiquid & otherLiquid & otherLiquid & otherLiquid & other
Date of Sampling02-01-2302-01-23Date of Sampling
Time of Sampling15352025Time of Sampling
Sample SourceNAPHTHA-R/DNAPHTHA-R/DSample Source
R.V.P-PSI(Kpa)11.4(78.5)R.V.P-PSI(Kpa)
Colour+30+30Colour
API at 60F°API at 60F°
DensityDensity
IBPIBP
10 % REC10 % REC
50 % REC50 % REC
70 % REC70 % REC
90 % REC90 % REC
EPT °CEPT °C
% REC% REC
Atmos.PressureAtmos.Pressure
KpaKpa
Transfer No.Transfer No.
PHPH
Water ContentWater Content
PurityPurity
Foam testFoam test
water cont. in aminewater cont. in amine
H2SH2S
MercuryMercury
RemarksRemarks
Ambient TemperatureMaximumMinimumAverageNAPHTHA-TK204D001NAPHTHA-TK205D001
NAPHTHA-TK204D002
Liquid & other LiquidLiquid & otherLiquid & otherLiquid & otherNAPH-TKNAPH-TKLiquid & other LiquidLiquid & otherLiquid & otherLiquid & otherNAPH. TKNAPH. TK
Date of Sampling02-01-23Date of Sampling
Time of Sampling1705Time of Sampling
Sample SourceNAPHTHA-TK306D-901ASample Source
R.V.P-PSI(Kpa)10.4(71.5)R.V.P-PSI(Kpa)
Colour+30Colour
API at 60F°API at 60F°
Density0.670Density
IBP35IBP
10 % REC4610 % REC
50 % REC5850 % REC
70 % REC70 % REC
90 % REC9890 % REC
EPT °C129EPT °C
% REC98.1% REC
Atmos.Pressure765Atmos.Pressure
KpaKpa
Transfer No.N-23-004Transfer No.
PHPH
Water ContentWater Content
PurityPurity
Foam testFoam test
water cont. in aminewater cont. in amine
H2SH2S
MercuryMercury
RemarksRemarks
LEAN GLYCOL CS-1LEAN GLYCOL CS-5LEAN GLYCOL CS-9FEED CONDENSATE FROM CS-4FEED CONDENSATE FROM CS-7
LEAN GLYCOL CS-3LEAN GLYCOL CS-6FEED CONDENSATE FROM CS-1FEED CONDENSATE FROM CS-5FEED CONDENSATE FROM CS-9
LEAN GLYCOL CS-4LEAN GLYCOL CS-7FEED CONDENSATE FROM CS-3FEED CONDENSATE FROM CS-6
Compressor StationStationStationStationStationStationCompressor StationStationStationStationStationStation
Date of SamplingDate of Sampling
Time of SamplingTime of Sampling
Sample SourceSample Source
R.V.P-PSI(Kpa)R.V.P-PSI(Kpa)
ColourColour
API at 60F°API at 60F°
DensityDensity
IBPIBP
10 % REC10 % REC
50 % REC50 % REC
70 % REC70 % REC
90 % REC90 % REC
EPT °CEPT °C
% REC% REC
Atmos.PressureAtmos.Pressure
KpaKpa
Transfer No.Transfer No.
PHPH
Water ContentWater Content
PurityPurity
Foam testFoam test
water cont. in aminewater cont. in amine
H2SH2S
MercuryMercury
RemarksRemarks
RESIDUE GASRESIDUE GAS COMBINEDDE-ETHANIZER O/HFEED GASC-14 OUT LET
GasesGasesGasesGasesGasesGasesGasesGasesGasesGasesGasesGases
Date of SamplingDate of Sampling
Time of SamplingTime of Sampling
Sample SourceSample Source
Dew PointDew Point
Water ContentWater Content
OlefinsOlefins
O2O2
H2H2
N2N2
C1C1
CO2CO2
C2C2
H2SH2S
C3C3
I-C4I-C4
N-C4N-C4
I-C5I-C5
N-C5N-C5
C6+C6+
MercuryMercury
Specific GravitySpecific Gravity
Molecular weightMolecular weight
NETNET
GROSSGROSS
OlefinsOlefins
AmmoniaAmmonia
RemarksRemarks
TOTALTOTAL
Gas Discharge from CS-1 to CGPGas Discharge from CS-3 to CGPGas Discharge from CS-5 to CGPGas Discharge from CS-7 to CGPAssociated gas from CS-7 (24 inch inlet line)
Gas Discharge from CS-3 to CGPGas Discharge from CS-4 to CGPGas Discharge from CS-6 to CGPGas Discharge from CS-9 to CGPGas from CS-9 junction header outside CS-5
Gases from CSGases from CSGases from CSGases from CSGases from CSGases from CSGases from CSGases from CSGases from CSGases from CSGases from CSGases from CS
Date of SamplingDate of Sampling
Time of SamplingTime of Sampling
Sample SourceSample Source
Dew PointDew Point
Water ContentWater Content
OlefinsOlefins
O2O2
H2H2
N2N2
C1C1
CO2CO2
C2C2
H2SH2S
C3C3
I-C4I-C4
N-C4N-C4
I-C5I-C5
N-C5N-C5
C6+C6+
MercuryMercury
Specific GravitySpecific Gravity
Molecular weightMolecular weight
NETNET
GROSSGROSS
OlefinsOlefins
AmmoniaAmmonia
RemarksRemarks
TOTALTOTAL
LPG RundownLPG RundownLPG RundownLPG RundownLPG RundownLPG RundownLPG RundownLPG RundownLPG RundownLPG RundownLPG RundownLPG Rundown
Date of Sampling02-01-2302-01-2302-01-2302-01-23Date of Sampling
Time of Sampling1520151520002005Time of Sampling
Sample SourceR/DR/DR/DR/DSample Source
ProductPROPANEBUTANEPROPANEBUTANEProduct
AmmoniaNILAmmonia
OlefinsNILNILNILOlefins
C21.0NILNILC2
C398.90.30.4C3
I-C40.124.727.3I-C4
N-C4NIL75.072.3N-C4
C5 +NILNILNILC5 +
Vapour Pressure1784343Vapour Pressure
Specific GravitySpecific Gravity
Copper Corrosion1Copper Corrosion
Water Content111Water Content
Volatile SulfurNILNILNILVolatile Sulfur
Hydrogen SulfideLESS THAN 1 PPMLESS THAN 1 PPMLESS THAN 1 PPMLESS THAN 1 PPMHydrogen Sulfide
RemarksRemarks
Total
100.00​
100.00​
100.00​
Total
LPG RundownLPG RundownLPG RundownLPG RundownLPG RundownLPG RundownLPG RundownLPG Rundown
Date of SamplingDate of Sampling
Time of SamplingTime of Sampling
Sample SourceSample Source
ProductProduct
AmmoniaAmmonia
OlefinsOlefins
C2C2
C3C3
I-C4I-C4
N-C4N-C4
C5 +C5 +
Vapour PressureVapour Pressure
Specific GravitySpecific Gravity
Copper CorrosionCopper Corrosion
Water ContentWater Content
Volatile SulfurVolatile Sulfur
Hydrogen SulfideHydrogen Sulfide
RemarksRemarks
TotalTotal
PROPANEBUTANEBULLETPUMP DISCHARGE
Bullet and SitraBullet & SitraBullet & SitraBullet & SitraBullet & SitraBullet & SitraBullet and SitraBullet & SitraBullet & SitraBullet & SitraBullet & SitraBullet & Sitra
Date of SamplingDate of Sampling
Time of SamplingTime of Sampling
Sample SourceSample Source
Tank NO.Tank NO.
ProductProduct
AmmoniaAmmonia
OlefinsOlefins
C2C2
C3C3
I-C4I-C4
N-C4N-C4
C5 +C5 +
Vapour PressureVapour Pressure
Specific GravitySpecific Gravity
Copper CorrosionCopper Corrosion
Water ContentWater Content
Volatile SulfurVolatile Sulfur
Hydrogen SulfideHydrogen Sulfide
Batch NO.Batch NO.
RemarksRemarks
TotalTotal
Bullet and SitraBullet & SitraBullet & SitraBullet & SitraBullet and SitraBullet & SitraBullet & SitraBullet & Sitra
Date of SamplingDate of Sampling
Time of SamplingTime of Sampling
Sample SourceSample Source
Tank NO.Tank NO.
ProductProduct
AmmoniaAmmonia
OlefinsOlefins
C2C2
C3INST. AIR COMP. 204C3
I-C4INST. AIR COMP. 205I-C4
N-C4GLYCOL CHILLERN-C4
C5 +CONTROL ROOM A/CC5 +
Vapour PressureDE-PROPANIZER CHILLERVapour Pressure
Specific GravityINST. AIR COMP. 207-K151Specific Gravity
Copper CorrosionINST. AIR COMP. 207-K152Copper Corrosion
Water ContentWater Content
Volatile SulfurVolatile Sulfur
Hydrogen SulfideHydrogen Sulfide
Batch NO.Batch NO.
RemarksDISTILLED WATERRemarks
TotalWATER TANKERTotal
Water and Oilwater & oilwater & oilwater & oilwater & oilwater & oilWater and Oilwater & oilwater & oilwater & oilwater & oilwater & oil
Date of SamplingDate of Sampling
Time of SamplingTime of Sampling
Sample SourceSample Source
ConductivityConductivity
TDSTDS
PHPH
IronIron
ChlorineChlorine
NitriteNitrite
OxygenOxygen
Calcium hardnessCalcium hardness
Total HardnessTotal Hardness
Flash PointFlash Point
ViscosityViscosity
RemarksRemarks
Water and Oilwater & oilwater & oilLiquid HydroLiquid HydroLiquid HydroWater and Oilwater & oilwater & oilLiquid HydroLiquid HydroLiquid Hydro
Date of SamplingDate of SamplingDate of SamplingDate of Sampling
Time of SamplingTime of SamplingTime of SamplingTime of Sampling
Sample SourceSample SourceSample SourceSample Source
ConductivityC2ConductivityC2
TDSC3TDSC3
PHIC4PHIC4
IronNC4IronNC4
ChlorineIC5ChlorineIC5
NitriteNC5NitriteNC5
OxygenC6OxygenC6
Calcium hardnessC7Calcium hardnessC7
Total HardnessC8Total HardnessC8
Flash PointC9Flash PointC9
ViscosityC10ViscosityC10
RemarksC11RemarksC11
C12C12
RemarksRemarks
TotalTotal
Vopour TankVopour TankVopour TankVopour TankVopour TankVopour TankVopour TankVopour TankVopour TankVopour Tank
Date of SamplingDate of Sampling
Time of SamplingTime of Sampling
Vessel NameVessel Name
Tank NO.Tank NO.
Hydrogen SulfideHydrogen Sulfide
MoistureMoisture
AmmoniaAmmonia
Nitrous GasesNitrous Gases
OxygenOxygen
NitrogenNitrogen
Carbon DioxideCarbon Dioxide
Vinyl ChlorideVinyl Chloride
OlefinsOlefins
RemarksRemarks

The empty cells where we entered the results of our analysis, for the three sheets.
We we want to print all the data, we have made a report on the same sheet for the three sheets by referencing all the cells from the above tables into the report cells. as the attached image.

I tried to extract the data from the print area, because the tables are arranged properly, but I face a problem with the referenced cells when I started the extraction. I got errors and no values. I would appreciate your efforts or any feedback.
 

Attachments

  • lab results print area_.gif
    lab results print area_.gif
    246 KB · Views: 8

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
I dunno but I think you've outgrown Excel and should be using a relational database. It could even be said that the issue isn't really outgrowing something as much as it may be an issue of using a screwdriver to drive in nails. Your process/activity involves multiple workbook files with multiple sheets and it raises issues like data extraction and presentation. The problem for most Excel people is the learning curve for relational databases. The biggest mistake they make is designing tables as if they were spreadsheets. I know that all won't help you solve this problem, but I throw it out there for future consideration. Hope you get an answer to your issue.
 
Upvote 1
Thanks, Micron
You hit the problem, I said the same when I join this place. Thats why I tried several times to do this complex job, but every time I hesitated to make effort on it. But now I need the data generated for years for manipulation. I tried so many ways to get the data extracted, but unfortunately, I am not that much expert in excel. I do my research and learn always, but I believe I do need someone's advice and help. My regards.
 
Upvote 0

Similar threads

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

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