Referencing Values from columns on Master sheet and skipping blank values

sjbfan

New Member
Joined
Jul 14, 2021
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hey I'm wondering what formula I can use to get these two sheets below from a master sheet. I would like to be able to type out values in either the In or the Out columns on my master sheet (3rd picture) and have them automatically be printed out in my In and my Out sheet along with their corresponding dates. Thanks!
1626550844184.png

1626550868194.png

1626550821159.png
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Hi SJBFan,

Does this help?

SJBFan.xlsx
ABC
1DateInOut
22021-06-021
32021-06-032
42021-06-043
52021-06-054
62021-06-065
72021-06-076
82021-06-087
92021-06-098
10
Master
Cell Formulas
RangeFormula
A3:A9A3=A2+1


Cell Formulas
RangeFormula
A2:B6A2=IFERROR(INDEX(Master!A$2:A$9999,AGGREGATE(15,6,ROW(Master!$B$2:$B$9999)-ROW(Master!$B$1)/(Master!$B$2:$B$9999<>""),ROW()-ROW($A$1))),"")


Cell Formulas
RangeFormula
A2:A6A2=IFERROR(INDEX(Master!A$2:A$9999,AGGREGATE(15,6,ROW(Master!$B$2:$B$9999)-ROW(Master!$B$1)/(Master!$C$2:$C$9999<>""),ROW()-ROW($A$1))),"")
B2:B6B2=IFERROR(INDEX(Master!C$2:C$9999,AGGREGATE(15,6,ROW(Master!$B$2:$B$9999)-ROW(Master!$B$1)/(Master!$C$2:$C$9999<>""),ROW()-ROW($A$1))),"")
 
Upvote 0
Since you have Microsoft 365 you can actually do this with a single formula in a single cell in each of the In/Out sheets. No need to copy the formula anywhere as the results will automatically 'spill' into the required number of rows and columns.

sjbfan.xlsm
ABC
1DateInOut
22/06/20211
33/06/20212
44/06/20213
55/06/20214
66/06/20215
77/06/20216
88/06/20217
99/06/20218
10
Master


sjbfan.xlsm
AB
1DateIn
22/06/20211
35/06/20214
46/06/20215
57/06/20216
6
In
Cell Formulas
RangeFormula
A1:B5A1=FILTER(Master!A1:B100,Master!B1:B100<>"","")
Dynamic array formulas.


sjbfan.xlsm
AB
1DateOut
23/06/20212
34/06/20213
48/06/20217
59/06/20218
6
Out
Cell Formulas
RangeFormula
A1:B5A1=LET(bigr,Master!A1:C100,smallr,INDEX(bigr,SEQUENCE(ROWS(bigr)),{1,3}),FILTER(smallr,INDEX(smallr,0,2)<>""))
Dynamic array formulas.


If you don't happen to have the LET function, then the formula in A1 of the Out sheet would be
Excel Formula:
=FILTER(INDEX(Master!A1:C100,SEQUENCE(ROWS(Master!A1:C100)),{1,3}),INDEX(INDEX(Master!A1:C100,SEQUENCE(ROWS(Master!A1:C100)),{1,3}),0,2)<>"")
 
Upvote 0
Actually, much simpler for the Out sheet:

sjbfan.xlsm
AB
1DateOut
23/06/20212
34/06/20213
48/06/20217
59/06/20218
6
Out
Cell Formulas
RangeFormula
A1:B5A1=LET(f,FILTER(Master!A1:C100,{1,0,1}),FILTER(f,INDEX(f,0,2)<>""))
Dynamic array formulas.


Without LET:

Excel Formula:
=FILTER(FILTER(Master!A1:C100,{1,0,1}),INDEX(FILTER(Master!A1:C100,{1,0,1}),0,2)<>"")
 
Upvote 0

Forum statistics

Threads
1,216,045
Messages
6,128,477
Members
449,455
Latest member
jesski

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