+ Reply to Thread
Results 1 to 2 of 2

IF-THEN: Scan one column, find all the corr. values from next column and display

  1. #1
    Registered User
    Join Date
    12-21-2011
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    1

    Question IF-THEN: Scan one column, find all the corr. values from next column and display

    Hi,

    I have categories I, II, III, IV under Column G. Column H has corresponding values. I have applied the general 'Filter' option to choose either I, II, III, IV or all for Column D

    What I would like in Column F is: - scroll though Column D; If the filter criteria is 'II', then, find all the 'II's from Column D, add the corresponding values of II from column E and display in Column F
    (The result in G would be, 5+3 = "8")


    D E F
    I 4
    II 5
    I 6
    IV 8
    II 3
    III 2
    III 1

    Thank You
    Angela

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

    Re: IF-THEN: Scan one column, find all the corr. values from next column and display

    Something like:

    =SUMPRODUCT(SUBTOTAL(9,OFFSET($F$1:$F$100,ROW($F$1:$F$100)-MIN(ROW($F$1:$F$100)),,1)),--($G$1:$G$100="II"))

    You can replace the "II" with a cell containing the filter criteria.
    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