+ Reply to Thread
Results 1 to 16 of 16

Summarizing a table

  1. #1
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    605

    Exclamation Summarizing a table

    Dear Experts,
    I have attached here a document for your support;

    I copy data on this table from another sheet. However, that sheet can contain the same data more than one time(may be two times, three times etc.).

    In this case, I have to summarize the "same details/table" above so that it shows values in column G by adding the order quantity. In other words, the summary table should show all the details one time. For example, row 3 and 4 contains the same "style". Here, I need this to be shown in only one row, but the "order quantity"(col G) to be added together (4830+2002)=6832.

    I have shown some examples manually on the summary sheet;

    Thanks in advance.
    Anuruddha
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Summarizing a table

    Maybe use PivotTable

  3. #3
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    605

    Re: Summarizing a table

    Quote Originally Posted by sandy666 View Post
    Maybe use PivotTable
    Hi, Thanks for the reply. I prefer a formula solution.

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Summarizing a table

    Your choice

    Have a good day

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Summarizing a table

    in F2 to get unique descriptions

    =IFERROR(LOOKUP(2,1/(COUNTIF($F$1:F1,Table2[Description])=0),Table2[Description]),"")

    in A2

    =INDEX('Data Sheet'!$A$2:$R$48,MATCH($F2,'Data Sheet'!$F$2:$F$48,0),COLUMNS($A:A))

    the above can be copied across to R

    THEN

    in G2

    =SUMIF('Data Sheet'!$F$2:$F$48,$F2,'Data Sheet'!$G$2:$G$48)

    In both the above, you can use "table" references but as I never use tables (old fashioned - don't like them!) I am not sure of the syntax.

    See "SUMMARY (") in the attached
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    605

    Re: Summarizing a table

    Quote Originally Posted by JohnTopley View Post
    in F2 to get unique descriptions

    =IFERROR(LOOKUP(2,1/(COUNTIF($F$1:F1,Table2[Description])=0),Table2[Description]),"")

    in A2

    =INDEX('Data Sheet'!$A$2:$R$48,MATCH($F2,'Data Sheet'!$F$2:$F$48,0),COLUMNS($A:A))

    the above can be copied across to R

    THEN

    in G2

    =SUMIF('Data Sheet'!$F$2:$F$48,$F2,'Data Sheet'!$G$2:$G$48)

    In both the above, you can use "table" references but as I never use tables (old fashioned - don't like them!) I am not sure of the syntax.

    See "SUMMARY (") in the attached
    Hi John,
    I was away yesterday for quite a some time. I will check and let you know the feedback.

    Thanks for your hard work as always.
    Regards
    Anuruddha

  7. #7
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    605

    Re: Summarizing a table

    in F2 to get unique descriptions

    =IFERROR(LOOKUP(2,1/(COUNTIF($F$1:F1,Table2[Description])=0),Table2[Description]),"")

    Hi John,
    The "unique" description is "booking reference"(column=C), not the column F(Description). Some styles are having "similar descriptions", but booking reference is different. So, how can I change the above formula for column C..?

    see the attached for the error it gives;two different booking references have been added since it looks for column F description as a unique value.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    605

    Re: Summarizing a table

    Also pls, is there a way to get "column I(Cut off Date)" ascending order?

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Summarizing a table

    In C2

    =IFERROR(LOOKUP(2,1/(COUNTIF(C$1:$C1,Table2[Booking Ref.])=0),Table2[Booking Ref.]),"")

    In A2

    =IFERROR(INDEX('Data Sheet'!$A$2:$R$51,MATCH($C2,'Data Sheet'!$C$2:$C$51,0),COLUMNS($A:A)),"")

    Change other columns as per change for A2 (Highlighted)

    To get in date order, sort "Data Sheet"

  10. #10
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    605

    Re: Summarizing a table

    Quote Originally Posted by JohnTopley View Post
    In C2

    =IFERROR(LOOKUP(2,1/(COUNTIF(C$1:$C1,Table2[Booking Ref.])=0),Table2[Booking Ref.]),"")

    In A2

    =IFERROR(INDEX('Data Sheet'!$A$2:$R$51,MATCH($C2,'Data Sheet'!$C$2:$C$51,0),COLUMNS($A:A)),"")

    Change other columns as per change for A2 (Highlighted)

    To get in date order, sort "Data Sheet"
    Hi John,
    Thanks to you, now I am a bit able to understand the logic. So, I already change your formula and got it done.

    By the way, for sorting date order do I need to highlight select "Column I"?

  11. #11
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    605

    Re: Summarizing a table

    sorting also done...thanks a lot.

  12. #12
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    605

    Exclamation Re: Summarizing a table

    Hi John,
    Hope you are fine.
    I just experienced some problem in the summary table. Data are not copied in the rows 2,3,4 except the columns C and G. Also, data are not copied in the row 2 every time, and there are "0" only in column C and G.

    I have attached the original work sheet for your reference.

    thanks.
    Attached Files Attached Files

  13. #13
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Summarizing a table

    The problem occurred because of the "dynamics"of the table where "Booking Ref." had many blank rows ....why I don't like tables!!!.

    I changed column c formula to

    =IFERROR(LOOKUP(2,1/(COUNTIF($C$1:C1,'Data Sheet'!$C$2:$C$86)=0),'Data Sheet'!$C$2:$C$86),"")

    I recommend you make column C in "Data Sheet" a dynamic range or the whole of "Data Sheet" a dynamic range.
    Attached Files Attached Files

  14. #14
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    605

    Re: Summarizing a table

    Thanks John,
    by the way, do you advice me to use normal work sheet type table for this? I can do that if it solves this type of errors.

  15. #15
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    605

    Re: Summarizing a table

    [QUOTE=JohnTopley;4756315]The problem occurred because of the "dynamics"of the table where "Booking Ref." had many blank rows ....why I don't like tables!!!.

    I changed column c formula to

    =IFERROR(LOOKUP(2,1/(COUNTIF($C$1:C1,'Data Sheet'!$C$2:$C$86)=0),'Data Sheet'!$C$2:$C$86),"")

    I recommend you make column C in "Data Sheet" a dynamic range or the whole of "Data Sheet" a dynamic range.[/QUOT

    Kindly explain me how to do "dynamic range" !

  16. #16
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Summarizing a table

    Try

    FORMULAS==>DEFINE NAME

    Name: Booking_Ref

    Refers to: =OFFSET('Data Sheet'!$C$2,,,COUNTIF('Data Sheet'!$C$2:$C$1000,"*?"),1)

    in C2

    =IFERROR(LOOKUP(2,1/(COUNTIF($C$1:C1,Booking_Ref)=0),Booking_Ref),"")

    in A2

    =IFERROR(INDEX('Data Sheet'!$A$2:$R$1000,MATCH($C2,Booking_Ref,0),COLUMNS($A:A)),"")

    change other formulae as above

    in G2

    =IFERROR(SUMIF(Booking_Ref,$C2,'Data Sheet'!$G$2:$G$1000),"")
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Need Help with Summarizing Pivot Table
    By JuicenGivency in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-03-2016, 10:44 AM
  2. [SOLVED] summarizing from a pivot table
    By smls in forum Excel General
    Replies: 1
    Last Post: 07-06-2012, 11:50 AM
  3. Summarizing for Pivot Table
    By Mase1 in forum Excel General
    Replies: 11
    Last Post: 10-17-2011, 04:14 PM
  4. summarizing a table
    By nfpaccounting in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-27-2011, 12:30 PM
  5. Summarizing a table
    By kmlloyd in forum Excel General
    Replies: 2
    Last Post: 03-07-2011, 03:30 PM
  6. Summarizing a sales table
    By neils1812 in forum Excel General
    Replies: 9
    Last Post: 10-26-2010, 04:04 AM
  7. summarizing data without a pivot table?
    By txbullets in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-30-2008, 11:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1