+ Reply to Thread
Results 1 to 2 of 2

Search Cells Above And Return Number

  1. #1
    Registered User
    Join Date
    06-21-2012
    Location
    London Town
    MS-Off Ver
    Excel 2007
    Posts
    4

    Search Cells Above And Return Number

    Hello

    I've searched these forums for many a time and always found what I needed but this one issue I can't resolve.

    When I enter data into a cell in column A (e.g A12) (the data is a job name from a drop down list e.g london street) I need to search column A but only the cells above the cell i've entered information into (A1 to A11). If the text entered (london street) matches any of the cells above it returns the sum of the numbers appearing in column N of the related row, in cell D12.

    E.G If I enter 'london street' in A12 it searches the cells above in column A, say A3 & A6 also contain 'London street' and the corresponding cells N3 & N6 contain a number, say 5 & 7, so the sum of the two numbers (12) apppears in column D on the same row as the newly entered info (D12)

    I hope this makes sense. Is this possible?

    Thanks in advnace for your help.

    Tom

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Search Cells Above And Return Number

    Try:

    =INDEX(D:D,MATCH(INDEX(A:A,ROW()),A1:INDEX(A:A,ROW()-1,0)))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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