+ Reply to Thread
Results 1 to 11 of 11

search for multiple variables and return de sum

  1. #1
    Registered User
    Join Date
    01-24-2013
    Location
    chile
    MS-Off Ver
    Excel 2007
    Posts
    12

    search for multiple variables and return de sum

    hi!
    ive uploaded 2 pictures. In picture 1picture 1.png, in cell I12 and so on down, i need to search for the variables in C12, D12, E12, F12, G12 and H12 that are in picture 2 picture 2.pngand return de sum of them all. Does someone know how to do it?
    id try with combining 6 BUSCARV() but i can't move it down, i would have to do it manually.
    thanks a lot!

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

    Re: search for multiple variables and return de sum

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: search for multiple variables and return de sum

    Also, your pics may be hiding some of your text?

    Take a look at using SUMIFS() for this?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    01-24-2013
    Location
    chile
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: search for multiple variables and return de sum

    hi Aligw

    thanks for your answer. now i have uploaded a sample with a demonstration were it says "TOTAL" i want to do that for all de cells down but it docent
    work by dragging it down. thanks a lot!
    Attached Files Attached Files

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: search for multiple variables and return de sum

    This will work, but Im sure there is a better way (working on it still)
    =VLOOKUP(B2,$J$2:$K$17,2,FALSE())+VLOOKUP(C2,$J$2:$K$17,2,FALSE())+VLOOKUP(D2,$J$2:$K$17,2,FALSE())+VLOOKUP(E2,$J$2:$K$17,2,FALSE())+VLOOKUP(F2,$J$2:$K$17,2,FALSE())+VLOOKUP(G2,$J$2:$K$17,2,FALSE())

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,422

    Re: search for multiple variables and return de sum

    Edited To include upload.

    If I understand correctly try this.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by FlameRetired; 06-18-2017 at 05:04 PM.
    Dave

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,422

    Re: search for multiple variables and return de sum

    Another possibility is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    01-24-2013
    Location
    chile
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: search for multiple variables and return de sum

    all of them worked! thanks for all de replies!

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,422

    Re: search for multiple variables and return de sum

    You're welcome.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: search for multiple variables and return de sum

    Quote Originally Posted by FlameRetired View Post
    Edited To include upload.

    If I understand correctly try this.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Nicely done Dave, I tried the SP/MATCH route, but didnt include ISNUMBER

  11. #11
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,422

    Re: search for multiple variables and return de sum

    Thanks. And thanks for the rep, too!

+ 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. Using Multiple Variables to Return Multiple Variables
    By BillMcSciFi in forum Excel General
    Replies: 12
    Last Post: 04-02-2017, 03:50 PM
  2. search 2 variables, return the correct one beside each match
    By katri80 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-12-2016, 03:39 PM
  3. [SOLVED] Search for two variables and return a cell
    By Lynneth in forum Excel General
    Replies: 1
    Last Post: 08-17-2015, 08:51 AM
  4. [SOLVED] using IF(SEARCH with multiple variables
    By khalloran in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 12-02-2014, 11:47 PM
  5. Search a table with multiple search inputs and return all matches
    By JDI in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-16-2014, 12:23 PM
  6. Replies: 6
    Last Post: 08-22-2014, 08:47 AM
  7. Search and return value to the left? Variables!
    By Crebsington in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2011, 01:32 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