+ Reply to Thread
Results 1 to 8 of 8

Conditional Formatting with Ranges of Corresponding Data

  1. #1
    Registered User
    Join Date
    01-24-2014
    Location
    Scottsdale
    MS-Off Ver
    Excel 2013
    Posts
    35

    Conditional Formatting with Ranges of Corresponding Data

    I am trying to accomplish the following conditional formatting and need some help please.

    In worksheet1, when cells F5-F13=CustomerName, I need the corresponding data from cells D5-F13 (order amount) to be subtotaled in cell C5 of worksheet 2.

    Please let me know if this makes sense.

    Thanks,

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Conditional Formatting with Ranges of Corresponding Data

    No, that doesn't make sense.

    First of all, you can't create a subtotal with conditional formatting - you need to enter a formula in Sheet2!C5.

    Now, to work out exactly what that formula should be, we need to understand your criteria a little better.
    Are you saying that you want a sum of range Sheet1!D5:F13 IF all the cells in range Sheet1!F5:F13 contain CustomerName??
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    01-24-2014
    Location
    Scottsdale
    MS-Off Ver
    Excel 2013
    Posts
    35

    Re: Conditional Formatting with Ranges of Corresponding Data

    Olly,

    Thanks for the reply.

    The range in f5-f13 in sheet 1 is mixed with different customer names. The corresponding range d5-d13 contains the order amount of that customer. In sheet 2 c5 I want it to add up only the d5-d13 cells in sheet 1 that are for that specific customer.

    Does that help?

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Conditional Formatting with Ranges of Corresponding Data

    Very nearly... The only missing bit of information now is what you mean by "that specific customer"!

    e.g. in Sheet2!C5, enter:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You can replace "CustomerName" with a cell reference containing the customer you wish to subtotal.

  5. #5
    Registered User
    Join Date
    01-24-2014
    Location
    Scottsdale
    MS-Off Ver
    Excel 2013
    Posts
    35

    Re: Conditional Formatting with Ranges of Corresponding Data

    Quote Originally Posted by OllyXLS View Post
    Very nearly... The only missing bit of information now is what you mean by "that specific customer"!

    e.g. in Sheet2!C5, enter:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You can replace "CustomerName" with a cell reference containing the customer you wish to subtotal.
    This worked Olly! Thanks, now if the data ranges of F5-F13 & D5-D13 are the same across multiple worksheets, how would I add them to the formula?

  6. #6
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Conditional Formatting with Ranges of Corresponding Data

    By repeating the SUMIF element for each worksheet:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    etc...

  7. #7
    Registered User
    Join Date
    01-24-2014
    Location
    Scottsdale
    MS-Off Ver
    Excel 2013
    Posts
    35

    Re: Conditional Formatting with Ranges of Corresponding Data

    Awesome, this was a huge help, thanks Olly!

  8. #8
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Conditional Formatting with Ranges of Corresponding Data

    Quote Originally Posted by ExelDummy View Post
    Awesome, this was a huge help, thanks Olly!
    My pleasure. Glad you're sorted

+ 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. Conditional Formatting + Name Ranges
    By Eaks77 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-21-2013, 03:36 PM
  2. Replies: 3
    Last Post: 05-15-2012, 04:13 PM
  3. [SOLVED] Conditional Formatting with Named Ranges
    By Revverend in forum Excel General
    Replies: 7
    Last Post: 04-02-2012, 05:31 AM
  4. Conditional Formatting for two ranges
    By Peter-B in forum Excel General
    Replies: 2
    Last Post: 10-07-2011, 06:53 AM
  5. [SOLVED] Conditional Formatting - date ranges
    By Angela in forum Excel General
    Replies: 6
    Last Post: 11-02-2005, 06:20 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