Results 1 to 7 of 7

Thread: Auto filter and sum up data

  1. #1
    Member Ryan_Bernal's Avatar
    Join Date
    Dec 2012
    Posts
    37
    Rep Power
    0

    Auto filter and sum up data

    Can someone help me on this?
    I have 3 columns (Column A = Date,Column B = Area,Column C = Kg)
    I want to automatically copy the filtered data on column I (Report) and get the total area and total kg of the the same data (area total column,kg total column) .

    Here is the attached sample of my workbook:
    Attached Files Attached Files

  2. #2
    Senior Member LalitPandey87's Avatar
    Join Date
    Sep 2011
    Posts
    222
    Rep Power
    13
    Paste below formula in Cell J2 and drag it down :

    =SUMIF($A$2:$A$23,$I2,$B$2:$B$23)


    Paste below formula in Cell K2 and drag it down :

    =SUMIF($A$2:$A$23,$I2,$C$2:$C$23)


  3. #3
    Member Ryan_Bernal's Avatar
    Join Date
    Dec 2012
    Posts
    37
    Rep Power
    0
    Quote Originally Posted by LalitPandey87 View Post
    Paste below formula in Cell J2 and drag it down :

    =SUMIF($A$2:$A$23,$I2,$B$2:$B$23)


    Paste below formula in Cell K2 and drag it down :

    =SUMIF($A$2:$A$23,$I2,$C$2:$C$23)

    Thanks It works!
    But how about column I?
    Data in column A will be copy on Column I (not including the duplicates).
    Any idea?

  4. #4
    Senior Member LalitPandey87's Avatar
    Join Date
    Sep 2011
    Posts
    222
    Rep Power
    13
    Paste below formula in Cell I2 with CSE and drag it

    =IFERROR(INDEX($A$2:$A$23,MATCH(0,COUNTIF($I$1:I1, $A$2:$A$23),0)),"")

    Paste below formula in Cell J2 and drag it down :

    =IF($I2 <> "", SUMIF($A$2:$A$23,$I2,$B$2:$B$23),"")


    Paste below formula in Cell K2 and drag it down :

    =IF($I2 <> "", SUMIF($A$2:$A$23,$I2,$C$2:$C$23),"")


  5. #5
    Senior Member LalitPandey87's Avatar
    Join Date
    Sep 2011
    Posts
    222
    Rep Power
    13
    If you want to extract unique value using formula, find below link

    List unique values using formula

    Enjoy.

  6. #6
    Member Ryan_Bernal's Avatar
    Join Date
    Dec 2012
    Posts
    37
    Rep Power
    0
    Didn't work on me.
    I dont know why.

  7. #7
    Senior Member LalitPandey87's Avatar
    Join Date
    Sep 2011
    Posts
    222
    Rep Power
    13

Similar Threads

  1. Replies: 6
    Last Post: 05-20-2013, 10:06 PM
  2. Auto Complete for Data Validation
    By IJC in forum Excel Help
    Replies: 1
    Last Post: 05-15-2013, 09:30 AM
  3. Auto Unique List
    By r_know in forum Excel Help
    Replies: 8
    Last Post: 07-19-2012, 09:28 PM
  4. Extract data using Advanced Filter
    By PcMax in forum Excel Help
    Replies: 4
    Last Post: 01-02-2012, 02:31 AM
  5. Auto adjust for cells according to value using VBA
    By LalitPandey87 in forum Excel Help
    Replies: 3
    Last Post: 11-08-2011, 08:58 AM

Posting Permissions

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