+ Reply to Thread
Results 1 to 5 of 5

Search for cell value; look up last number value in row, sum those values

  1. #1
    Registered User
    Join Date
    12-07-2016
    Location
    CO, USA
    MS-Off Ver
    2013
    Posts
    12

    Search for cell value; look up last number value in row, sum those values

    Hello,

    I have a changing database where I give a questionnaire(s) and then record the score. Sometimes I do not administer the questionnaire and use "*" to denote that I met with the person, but did not administer anything. There are also blank cells where a week went by and I neither met with them nor were questionnaires administered. So there are blanks and *'s everywhere making things more complicated. Furthermore, I will be continuously adding data to both the rows and the columns. I attached an example of what I am trying to accomplish.

    Sorry if this is confusing, I had a hard time making this into a question. I have tried using an Index/Match formula but cannot figure out what goes in the "column portion of the Match. What I have looks like: =INDEX(B1:EZ3000,MATCH("Red",A1:A3000,0),?) with the ? mark denoting what I cannot figure out.

    Thank you so much in advance. If you have the time, I would also not take for granted an explanation of what you came up with so I can learn and not bother you all as much in the future

    Thank you,

    Greg
    Attached Files Attached Files
    Last edited by Gregbaron; 11-03-2017 at 10:50 AM. Reason: Did not realize my attachment attached

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Search for cell value; look up last number value in row, sum those values

    Hi Greg- If a (hidden??) helper column is allowed, use a formula in each row to find the last number entered (B2 and copied down):
    Please Login or Register  to view this content.
    ...and a simple SUMIF to finish (Shown in C13):
    Please Login or Register  to view this content.
    Row\Col
    A
    B
    C
    D
    E
    F
    G
    H
    I
    1
    Name
    Hidden
    S S S S S S S
    2
    Red
    2
    1
    *
    2
    3
    Blue
    4
    3
    4
    4
    #N/A
    5
    Green
    2
    2
    2
    6
    Red
    1
    1
    1
    *
    7
    Red
    1
    4
    *
    1
    8
    #N/A
    9
    #N/A
    10
    Blue
    1
    1
    *
    11
    #N/A
    12
    13
    Red
    4
    Attached Files Attached Files
    Last edited by leelnich; 11-03-2017 at 01:55 PM.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Search for cell value; look up last number value in row, sum those values

    formula for G2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Then fill down and sum.

    That should be enough to get you started.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  4. #4
    Registered User
    Join Date
    12-07-2016
    Location
    CO, USA
    MS-Off Ver
    2013
    Posts
    12

    Re: Search for cell value; look up last number value in row, sum those values

    That works! Thanks so much.

  5. #5
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Search for cell value; look up last number value in row, sum those values

    You're welcome, and thank you for the rep! If complete, please go to Thread Tools (up top) and mark your thread as SOLVED. -Lee

+ 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. VBA Code - Search text & search number & search qty and result - Urgent Please
    By naresh73 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-15-2014, 10:51 AM
  2. Search text and get it's cell number
    By adraut in forum Excel General
    Replies: 2
    Last Post: 07-10-2012, 07:24 PM
  3. search cell values based on list of values in other sheet and add color to row
    By darkbraids in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-10-2012, 08:35 AM
  4. search a cell for values in a range, return values found
    By carpe.cervisiam in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-15-2011, 12:52 PM
  5. Replies: 3
    Last Post: 06-28-2010, 06:20 PM
  6. Search the number of times 2 corresponding values appear
    By srobinson89 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-07-2009, 11:09 AM
  7. How to search/filter data in Excel dropdown having large number of values
    By sampr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-06-2007, 10:20 AM

Tags for this Thread

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