Excel Summary Report Display Expired Dates From Multiple Sheets

wcm69

Board Regular
Joined
Dec 25, 2016
Messages
112
Hi

Hoping someone can help/advise.

I have created a workbook showing various companies employee’s training certificates expiry dates. Cells are formatted to highlight expired and soon to expire (within 30 days) dates. Each of the (21) companies is shown on a separate worksheet (tab).

Current workbook layout:

Each company name is in (Cell: A6). Below this are the worker’s names in (Cells: A7:A10). The (various) certificate headings are across 22 columns (Cells: B6:W6). Below each of these columns are the formatted cert (expiry) dates. Note. Some columns are blank where a cert is not held.

Due to the number of companies (possibly increasing in the future) I would like to have a ‘Summary Report’ page (Sheet1) to look-up/find the desired company (using a dropdown list) and display the data/dates beneath the following header columns (Sheet 1 / Cells: B5:E5).

1) The worker’s name. 2) The certificate name. 3) Soon to expire certificate dates. 4) Expired certificate dates.

On the ‘Summary Report’ (Sheet1) I have already created the dynamic drop-down list with the company names (Cell: H5) from the 21 worksheet tabs to use for the lookup.

Any help is greatly appreciated.

Thanks in advance.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Very doable. But, I'd recommentd you create a master data sheets with only these columns:
Company, Employee, Certificate Name, Certificate Expiry Date.

Take all of the 22 sheets you have now, bring them into Power Query and "Unpivot" them to make your initial master list. You can then provide all kinds of reports.

Except, you need a version of excel that has power query. but that would only be necessary for the first set up. Once you have the data in a master table you can do regular reports and such.
 
Upvote 0
Very doable. But, I'd recommentd you create a master data sheets with only these columns:
Company, Employee, Certificate Name, Certificate Expiry Date.

Take all of the 22 sheets you have now, bring them into Power Query and "Unpivot" them to make your initial master list. You can then provide all kinds of reports.

Except, you need a version of excel that has power query. but that would only be necessary for the first set up. Once you have the data in a master table you can do regular reports and such.
Hi Awoohaw,

Many thanks for the swift response and advise. Unfortunately I can not use the Power Query option, and was hoping for a work round of some sort using excel functions.

I've looked online (YouTube) and seen what look like a few possibilities, but I'm not really Excel proficient to be able to use them correctly to achieve what I want.

If you've got another solution or other suitable advice I'd be really grateful.
 
Upvote 0
Well, there are ways to unpivot "manually".
Here is a youtube I just found. I do not know how great it is.

his formula seems somewhat automated.

Your request is is similar to asking for an unpivot for the summary reports, so you are going to need to do something like that anyway. But, that would be monthly. The method I'm suggesting is just a one time event.

And some folks here may have VBA solutions as well. I am not VBA proficient. I'll try to dummy a file up and see i can replicate what the guy in the youtube does.
 
Upvote 0
Which version of Excel do you have? And, if possible you should add that to your profile here so people can see what you have and make suggestions to fit your version.
 
Upvote 0
Well, there are ways to unpivot "manually".
Here is a youtube I just found. I do not know how great it is.

his formula seems somewhat automated.

Your request is is similar to asking for an unpivot for the summary reports, so you are going to need to do something like that anyway. But, that would be monthly. The method I'm suggesting is just a one time event.

And some folks here may have VBA solutions as well. I am not VBA proficient. I'll try to dummy a file up and see i can replicate what the guy in the youtube does.
Thank you for the link. I've taken a look at the video - a solution may lay within this approach. I'll it a try to see if I can make any progress, though I'm still not sure how I'll get all the sheets into one master sheet - which I think is needed.

I'll give feedback asap.

Many thanks again.
 
Upvote 0
Well, you could copy and paste 22 times. Or you could write a formula referencing the sheet names in an Indirect function. If you aren't familiar with that, is not a great function for permanent use in worksheets, but it is good for your situation. As you'll be copy/paste value after the unpivot. You'll see the guy use it in the video.
 
Upvote 0
I've come up with something.
I'm not sure the range names will come through in the calculations, if not I'll respost the calculations separately. I also have some instructions, that i hope are accurate.

WorkBook1.xlsx
ABCDEFGHIJKLMNO
1
2
3
4
5CompanyNameCertificationCert Exp Dt
6Company NameCert1Cert2Cert3Cert4Cert5Cert6Cert7Cert8Company NameName1Cert11/0/1900
7Name18/25/20233/7/2023Company NameName1Cert21/0/1900
8Name210/23/20238/10/20223/7/2023Company NameName1Cert31/0/1900
9Name312/25/20222/8/20233/27/2023Company NameName1Cert41/0/1900
10Name45/7/20223/1/20237/11/202211/28/20234/10/2023Company NameName1Cert58/25/2023
11Company NameName1Cert63/7/2023
12NamedRangesCompany NameName1Cert71/0/1900
13Steps to unpivot with the layout in A6:I10Company NameName1Cert81/0/1900
14AddressName of rangesave a read only version of the workbook so you don't overwrite formulas with paste values.Company NameName2Cert110/23/2023
15Company NameCell where Comp Name is;$A$6CompanyName1. Figure out your cell locations.Company NameName2Cert21/0/1900
16Employee NamesCells where Empl Names are$A$7:$A$10EmpNames2. Use Name Manager>>Define Names according to the chart to the left.Company NameName2Cert38/10/2022
17Certificate NameCells where Cert Names are$B$6:$I6Certifications3. Copy the row header K5:N5 as on this sheetCompany NameName2Cert43/7/2023
18Certificate Exp DatesCells where the dates are$B$7:$I$10CertDates4. At K6, copy K6:N6Company NameName2Cert51/0/1900
195. Copy Down.Company NameName2Cert61/0/1900
207. Paste as ValuesCompany NameName2Cert71/0/1900
218. Turn on FilterCompany NameName2Cert81/0/1900
229. Filter all columns to show the zero valuesCompany NameName3Cert112/25/2022
2310. delete the rows with zero values in certificate dateCompany NameName3Cert21/0/1900
2411. format the date column.Company NameName3Cert32/8/2023
2512. I think that worksheet is finished.Company NameName3Cert41/0/1900
26Company NameName3Cert51/0/1900
27Company NameName3Cert61/0/1900
28Company NameName3Cert71/0/1900
29Company NameName3Cert83/27/2023
30Company NameName4Cert11/0/1900
31Company NameName4Cert21/0/1900
32Company NameName4Cert35/7/2022
33Company NameName4Cert43/1/2023
34Company NameName4Cert57/11/2022
35Company NameName4Cert611/28/2023
36Company NameName4Cert71/0/1900
37Company NameName4Cert84/10/2023
38
Unpivot Old Way
Cell Formulas
RangeFormula
K6:K37K6= IF( ROWS(CompanyName) > (ROWS(EmpNames)*COLUMNS(Certifications)),"",CompanyName)
L6:L37L6=INDEX( EmpNames, ROUNDUP( ROWS($A$7:A7) / COLUMNS(CertDates),0),1)
M6:M37M6=INDEX( Certifications, (1+MOD( (ROWS($A$7:A7)-1), COLUMNS(CertDates))))
N6:N37N6=INDEX( CertDates, ROUNDUP( ROWS($A$7:A7) / COLUMNS(CertDates),0), (1+MOD( (ROWS($A$7:A7)-1), COLUMNS(CertDates))) )
Named Ranges
NameRefers ToCells
CertDates='Unpivot Old Way'!$B$7:$I$10L6:N37
Certifications='Unpivot Old Way'!$B$6:$I$6M6:M37, K6:K37
CompanyName='Unpivot Old Way'!$A$6K6:K37
EmpNames='Unpivot Old Way'!$A$7:$A$10K6:N37
 
Upvote 0
if the above works it is much less complicated than how the guy in you tube does it.

One note that i did not make clear... you need to name your ranges that fit the dimensions of your cross tab data. You will probably have more than 4 rows, and I think you mentioned you have over 20 certifications.
 
Upvote 0
another thing just occured to me. the formulas use defined names for the ranges and they would be same on each worksheet in your workbook. So that means you have to
1. Delete the names after every worksheet you unpivot.
or
2. when you add a name, you'll need to define at the worksheet level, and not the workbook level.

1675221510194.png
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,264
Members
452,627
Latest member
KitkatToby

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