I need help generating a summary page.

a15457

Board Regular
Joined
Oct 23, 2014
Messages
80
Hi All,

I have a work book that I'm building that will summarise important data from other sheets within the same workbook. What I need help with is building the count / If / Sum formulas to grab the info that I want.

The Summary sheet looks like this:

Book1
ABC
1Summary
2OverDueDue By date
3Data1
4Data2
5Data3
Summary


The "Data1" Sheet looks like this:

Book1
ABCD
1IDAmountDatePaid
211020/02/2015Yes
322020/03/2015Yes
433020/04/2015Yes
544020/05/2015Yes
655020/06/2015No
766020/07/2015Yes
877020/08/2015Yes
988020/09/2015Yes
1099020/10/2015Yes
111010020/11/2015Yes
121111020/12/2015No
131212020/01/2016No
141313020/02/2016Yes
151414020/03/2016Yes
161515020/04/2016Yes
Data1


The Data2 Sheet looks like this:

Book1
ABCD
1IDAmountDatePaid
211020/02/2015Yes
322020/03/2015Yes
433020/04/2015Yes
544020/05/2015Yes
655020/06/2015Yes
766020/07/2015Yes
877020/08/2015Yes
988020/09/2015Yes
1099020/10/2015Yes
111010020/11/2015Yes
121111020/12/2015Yes
131212020/01/2016Yes
141313020/02/2016Yes
151414020/03/2016No
161515020/04/2016Yes
Data2


What I want to do is add up the values from the datasheets column B (Amount) IF the value in column D (Paid) is "No".

So for "Data1" I want it to add up B6, B12, and B13 and this total will go into B3 on the Summary Sheet.

For "Data2" I want it to add up B15 and this total will go into B4 on the Summary Sheet.

After that I need to grab the oldest date in a Data sheet where (Paid) is "No" and put that into C3 on the summary sheet, "20/06/2015" for "Data1", and "20/03/2016" for "Data2". It should also be noted that the dates may not necessarily be in order in the data sheets.

I'm using Excel 2013 on windows 7 x64.

Hopefully I've been clear on what I want and that it's not too hard to work out. I just don't know where to start. It's been a while since I've played in Excel land.

Cheers,

Dave

:)
 

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.
depends how fancy you want to get
the overdue can be handled by a sumif formula
=SUMIF(Data1!D:D,"No",Data1!B:B)

however you need to manually update the sheet reference
you can get fancy and use an indirect to point to the sheet if you want
=SUMIF(INDIRECT(A3&"!D:D"),"No",INDIRECT(A3&"!B:B"))
where a3 = sheet name

For due date
you can do it with a CSE formula...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

=INDEX(Data1!C2:C16,SMALL(IF(Data1!D2:D16="No",ROW(Data1!D2:D16)-1),1))

you can apply the same principle of indirect but it gets a bit fiddly

=INDEX(INDIRECT(A3&"!C2:C16"),SMALL(IF(INDIRECT(A3&"!D2:D16")="No",ROW(D2:D16)-1),1))
 
Last edited:
Upvote 0
Thank you very much Humdingaling, that's almost perfect.

From the sample spreadsheet that you shared, if you change the date of row 13 (Cell C13) to 20/01/2013 and "No" was in D13 I would expect that date to show up on the summary page but it doesn't instead I get the date "20/03/2015" from Cell C6.

The other oddness that I've noticed and something that I should have thought of initially if there are no items unpaid so all of column D is Yes then I need it to say something like "No Outstanding" in the OverDue and due By Date columns on the summary page. What I noticed when I filled Yes through all of column D it would just show 0 in overdue, which is kind of OK and I can work with that, but the Due by date seems to select the date from the second row down of data.

Cheers,

Dave

:)
 
Upvote 0
sorry i did the formula back to front
Code:
=IFERROR(SMALL(INDEX(INDIRECT(A3&"!C2:C16"),(IF(INDIRECT(A3&"!D2:D16")="No",ROW(D2:D16)-1))),1),"Missing")
the INDEX needs to be first not the SMALL

now of the other condition
add another if infront to check if B is zero
Code:
=IF(B3=0,"No outstanding",IFERROR(SMALL(INDEX(INDIRECT(A3&"!C2:C16"),(IF(INDIRECT(A3&"!D2:D16")="No",ROW(D2:D16)-1))),1),"Missing"))

file updated
https://drive.google.com/file/d/0B5iSSIFE0WGKdzZWVjY2TzVFejA/view?usp=sharing
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,853
Members
452,361
Latest member
d3ad3y3

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