Closed Thread
Results 1 to 8 of 8

Formula to sum filtered data based on criteria but excluding any errors i.e #N/A

  1. #1
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2024
    Posts
    2,902

    Formula to sum filtered data based on criteria but excluding any errors i.e #N/A

    I have set up a formula in Col B to sum the values in Col B on sheet "Imported data" where the items in Col K to be summed is the same as the criteria in Col A , Error items i,e #N/A is to be excluded


    Your assistance in amending my formula is most appreciated

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2509 (Windows 11 Home 24H2 64-bit)
    Posts
    92,434

    Re: Formula to sum filtered data based on criteria but excluding any errors i.e #N/A

    You have forgotten to include your expected answers, manually mocked up. Also there is no data in column K.

    Please add annotaions explaining your requirements and expected results to your workbook. Sharing non-working formulae does not help very much.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Formula to sum filtered data based on criteria but excluding any errors i.e #N/A

    Maybe:

    =SUMPRODUCT(--IFERROR(('Imported Data'!$E$2:$E$20=$A1),0),SUBTOTAL(109,OFFSET('Imported Data'!B$2:B$20,ROW('Imported Data'!B$2:B$20)-ROW('Imported Data'!B$2),0,1,1)))
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,941

    Re: Formula to sum filtered data based on criteria but excluding any errors i.e #N/A

    How about add a new column & in F2 put
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and drag down, then you can use
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    far simpler & more efficient.

  5. #5
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2024
    Posts
    2,902

    Re: Formula to sum filtered data based on criteria but excluding any errors i.e #N/A

    My Apologies Ali. I was unfortunately in a rush as I had a meeting

  6. #6
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2024
    Posts
    2,902

    Re: Formula to sum filtered data based on criteria but excluding any errors i.e #N/A

    Thanks Fluff & Glenn. Both your solutions worked

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,941

    Re: Formula to sum filtered data based on criteria but excluding any errors i.e #N/A

    Glad to help & thanks for the feedback.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2509 (Windows 11 Home 24H2 64-bit)
    Posts
    92,434

    Re: Formula to sum filtered data based on criteria but excluding any errors i.e #N/A

    Administrative Note:

    Unfortunately, this is a duplicate thread, and you are allowed only ONE thread per issue here.

    Please see Forum Rule #5 about thread duplication.

    I am closing this thread, but you may continue here in the original thread: https://www.excelforum.com/excel-for...-criteria.html

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Summing Filtered Data based on Criteria
    By Howardc1001 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 08-27-2022, 10:30 AM
  2. Count text formula based on multi-criteria excluding duplicates
    By eyeope in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-07-2019, 12:26 PM
  3. Replies: 2
    Last Post: 02-07-2019, 11:30 AM
  4. Find average of last 24 hrs data from a filtered range based on a criteria
    By styldude in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-18-2017, 05:18 AM
  5. Data validation filtered list based on a criteria
    By fredotom in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-24-2015, 11:01 AM
  6. Copy filtered Data into another worksheet based on selected criteria
    By TheresaHartigan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-27-2014, 09:39 AM
  7. VBA Code to Move Data from one range to another based upon filtered criteria
    By Engineer5701 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-06-2013, 03:14 PM

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