+ Reply to Thread
Results 1 to 4 of 4

Search and sum if equal

  1. #1
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Search and sum if equal

    Good evening, you want to connote column A codes with column C and add the respective column values B and D if the codes are upright in case only one of them returns the value of the existing one and not # N / D
    Example line 3 of the attached file must give 2
    The formula I'm using is not good
    Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Search and sum if equal

    Try

    =IFERROR(VLOOKUP(A2,$A$2:$B$30,2,0),0)+IFERROR(VLOOKUP(A2,$C$2:$D$56957,2,0),0)
    and copy down the column
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Search and sum if equal

    Try

    =SUM(SUMIF(C:C,A2,D:D),SUMIF(A:A,A2,B:B))

  4. #4
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Re: Search and sum if equal

    Hi boy
    Both solutions are perfect
    Thanks a lot for the quick solution
    you are great.

+ 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. Search for numbers that equal one total
    By cmorten82 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-10-2015, 03:49 PM
  2. [SOLVED] Search for name equal to sheet and copy
    By Wiebe in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 04-18-2014, 01:57 PM
  3. Replies: 3
    Last Post: 06-18-2008, 12:27 AM
  4. is there an equal fxn for 'InStr' in excel. Not Find or Search
    By Arvi Laanemets in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 12:05 PM
  5. is there an equal fxn for 'InStr' in excel. Not Find or Search
    By Arvi Laanemets in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 06:05 AM
  6. [SOLVED] is there an equal fxn for 'InStr' in excel. Not Find or Search
    By Clausius in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  7. [SOLVED] is there an equal fxn for 'InStr' in excel. Not Find or Search
    By Clausius in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-30-2005, 04:05 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