+ Reply to Thread
Results 1 to 4 of 4

Calculate based on combination of multiple rows & column values

  1. #1
    Registered User
    Join Date
    12-22-2020
    Location
    Alverstoke, England
    MS-Off Ver
    365
    Posts
    23

    Calculate based on combination of multiple rows & column values

    Hi,
    Can anyone help me please?
    I've attached an example sheet which I hope explains my problem, and I'll attempt to explain it in words...

    I have a sheet with multiple sets of data (highlighted by colours) and I want to calculate, per set of data, based on the highest value of one column (G), but only if a 1 or 2 exists in another column (F)

    Amber/Green colours...
    So if Col G has the highest value per set of data, plus there is a 1 or 2 in column F then multiply Value1 (Col E) by whatever parameter I set, in this case 10 (J1)

    All other results for that set of data are zero

    On the other hand, (blue highlighted data) if we've identified the highest value per set of data but if the matching 'select' value (F) is zero, then the result should be a minus of my set parameter (J1), and again all other results for that set of data are zero

    I've just read that back and I think I've made it sound awful, but I think with the example it might make sense.

    As always, any help or advice is much appreciated.

    Thank you
    Attached Files Attached Files

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Calculate based on combination of multiple rows & column values

    In I3 copied down:

    =IF(G3=MAXIFS($G$3:$G$20,$B$3:$B$20,B3),IF(F3=0,-10,E3*$J$1),0)
    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
    Registered User
    Join Date
    12-22-2020
    Location
    Alverstoke, England
    MS-Off Ver
    365
    Posts
    23

    Re: Calculate based on combination of multiple rows & column values

    Superb, thank you very much I really appreciate that

  4. #4
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Calculate based on combination of multiple rows & column values

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

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. Replies: 4
    Last Post: 05-09-2017, 06:05 AM
  2. [SOLVED] Add text values to multiple rows, based off one column
    By hambly in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-30-2016, 04:43 PM
  3. Formula to Sum 3 Column Values based on Multiple Criteria for Multiple Rows
    By RMerckling in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-19-2016, 07:46 PM
  4. Create new rows based on Multiple values in a column
    By bmj121 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-09-2015, 03:17 PM
  5. Replies: 6
    Last Post: 10-18-2012, 03:10 PM
  6. Hide rows based on multiple column values
    By dtanios in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-07-2012, 02:09 PM
  7. Formula to compare multiple rows values based on another column?
    By Murph in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-20-2005, 11:06 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