Results 1 to 4 of 4

Grouping rows based on column values and comparing row values

Threaded View

bernborough Grouping rows based on column... 08-26-2010, 06:33 PM
MarvinP Re: Grouping rows based on... 08-26-2010, 07:53 PM
bernborough Re: Very difficult decision... 08-27-2010, 07:05 AM
Marcol Re: Grouping rows based on... 08-27-2010, 10:18 AM
  1. #1
    Registered User
    Join Date
    08-10-2010
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    30

    Grouping rows based on column values and comparing row values

    Hi there,

    Please see attached. Single Header row in row1. Data begins in A2. I originally thought I would need to name the rows to enable an easy way of writing the calculation formula but with unknown numbers of rows to name or group, I don't know how that would have worked.

    What I am looking to do is calculate (columnC row? minus columnC row?)between:

    (i) rows that have a column E value of "NB";
    (ii) rows that have a column E value of "S"; and
    (iii) only perform this calculation between rows that share the same value for columns A,B & D ; and
    (iv) where the column C value for Step(i) rows > column C value for ANY Step(ii) rows, populate Step(i) rows column F with "S"; and
    (v) where the column C value for Step(i) rows <= column C value for ALL Step(ii) rows, populate Step(i) rows column F with "NB"

    So, the final result in column F should be "S" in rows 5&12 and "NB" in row 17.

    Thanks

    Trent
    Attached Files Attached Files

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