Sort week nr's with formula

Ramballah

Active Member
Joined
Sep 25, 2018
Messages
311
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone,

I have 2 pivot tables that I want to merge into one chart (both on different sheets)
I need to do this for multiple pivot tables so I want to get this done with a formula.
In tab 3 I make a new chart where I use vlookups on the week numbers.
See my result:
1601537556092.png
1601537565843.png
1601537577277.png

So what I have are 2 pivot tables, and then in tab 3 (3rd picture) I want to only show me the weeks that I have in the pivot tables. I have no use for week 1-3 etc (weeks that I'm not using)
Is this possible as a formula?

Thanks in advance,
Ram

Workbook: https://easyupload.io/cy8urp
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
See if something like this would work for you.

Cell Formulas
RangeFormula
A2:A37A2=IF(OR(A1="",A1=MAX(MAX(Debiteuren!A$3:A$50),MAX(Crediteuren!A$3:A$50))),"",MIN(IFERROR(AGGREGATE(15,6,Debiteuren!A$3:A$50/(Debiteuren!A$3:A$50>N(A1)),1),99),IFERROR(AGGREGATE(15,6,Crediteuren!A$3:A$50/(Crediteuren!A$3:A$50>N(A1)),1),99)))
B2:B37B2=IF(A2="","",IFERROR(VLOOKUP(A2,Debiteuren!A:B,2,FALSE),0))
C2:C37C2=IF(A2="","",IFERROR(VLOOKUP(A2,Crediteuren!A:B,2,FALSE),0))
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,214,652
Messages
6,120,747
Members
448,989
Latest member
mariah3

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