+ Reply to Thread
Results 1 to 7 of 7

spreadsheet query, nested formulae and conditional formatting

  1. #1
    Registered User
    Join Date
    08-18-2010
    Location
    Worcester
    MS-Off Ver
    Excel 2007
    Posts
    11

    Talking spreadsheet query, nested formulae and conditional formatting

    Hi, I am trying to set up a spreadsheet that requires some thought and I'm struggling!

    I will have 3 sets of data each with 3 subsets in them. for example A1A2A3, B1B2B3 and C1C2C3. Can the sheet select the highest number from the As,Bs and Cs and give a total? Also can the highest number in the As turn a different colour, same for Bs and Cs??

    Any help with this would be greatly appreciated!!

  2. #2
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: spreadsheet query, nested formulae and conditional formatting

    The formula for the first part of the query is in the yellow cell.

    Conditional formatting deals with the rest so highlight one of the other cells and check conditional formatting to see how it's done.

    S.

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: spreadsheet query, nested formulae and conditional formatting

    Yes... for Highest, you can use Max or Large function....
    Upload a sample workbook in case of any issues... thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  4. #4
    Registered User
    Join Date
    12-22-2011
    Location
    Berlin, Germany
    MS-Off Ver
    Excel 2010
    Posts
    58

    Re: spreadsheet query, nested formulae and conditional formatting

    Your highest number will be =max(A1:A3), =max(B1:B3),and =max(C1:C3).
    With these results you can then same the sum. You could either do it piece-wise or do =sum(max(A1:A3),max(B1:B3),max(C1:C3)). That is the total of your highest values in columns A, B, and C.

    For your conditional formatting, highlight your data (A1 to A3, for example) go to conditional formatting, highlight cell rules, equal to, now type =max(A1:A3) in the left box and choose your format on the right. Now click OK and your max value for that column should be formatted how you specified. Do each column (A, B and C) one at a time, or else you'll only have the one max result for A1 through C3, which is not what you want.

  5. #5
    Registered User
    Join Date
    08-18-2010
    Location
    Worcester
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: spreadsheet query, nested formulae and conditional formatting

    That's fantastic! Thank-you, is there anyway of preventing it from adding two of the same number in each set of data if they are both the same and highest?

    eg. if A1 and A2 were both 10 and A3 was 8 it would only use one of the 10s in the final sum?

    Quote Originally Posted by Spencer101 View Post
    The formula for the first part of the query is in the yellow cell.

    Conditional formatting deals with the rest so highlight one of the other cells and check conditional formatting to see how it's done.

    S.

  6. #6
    Registered User
    Join Date
    12-22-2011
    Location
    Berlin, Germany
    MS-Off Ver
    Excel 2010
    Posts
    58

    Re: spreadsheet query, nested formulae and conditional formatting

    No, it will not add 10 twice. The max is the max.

  7. #7
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: spreadsheet query, nested formulae and conditional formatting

    As mentioned above, they could all be 10 and the max would still be 10, so it will only count it once.

    S.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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