+ Reply to Thread
Results 1 to 9 of 9

Conditional formating nightmare

  1. #1
    Registered User
    Join Date
    02-16-2021
    Location
    Phoenix, AZ
    MS-Off Ver
    Office 365
    Posts
    10

    Question Conditional formating nightmare

    All -

    New here. This is my first post and it's because I'm stuck and confused.

    Here is what I have:

    I have:
    1) first table (sheet 1) shows each individual sales item in its own row. Columns at the top illustrate various features, with the most important one (Authorization) showing "A" for authorized, "O" for Optional, "U" for Unauthorized.
    2) a second table (sheet 2) shows each store in it's own row, with the items as columns. Sales data for each item, if it exists, is in the corresponding cell.

    What I need is to conditionally format on the second table for each item's status at each store.
    I need to show:
    1. If the item is authorized ("A") but no sales (essentially a blank cell)
    2. If the item isn't authorized ("U") either with or without sales
    3. If the item is optional ("O") either with or without sales

    My issue is in the conditional rule formatting. I believe that I will need to use an IF and VLOOKUP but having trouble orienting it well.

    Ideas?

  2. #2
    Valued Forum Contributor
    Join Date
    04-24-2020
    Location
    Woodbridge, VA
    MS-Off Ver
    2016
    Posts
    434

    Re: Conditional formating nightmare

    Hi - can you post a small sample of your file?

  3. #3
    Registered User
    Join Date
    02-16-2021
    Location
    Phoenix, AZ
    MS-Off Ver
    Office 365
    Posts
    10

    Re: Conditional formating nightmare

    Here is what I am working on (a very simplified version, with both tables on one sheet.

  4. #4
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,829

    Re: Conditional formating nightmare

    While having F5:I9 selected, go to Conditional formatting and select Manage Rules, New Rule. Enter this formula in the formula box:
    =AND(XLOOKUP($B5&F$4,$M$5:$M$24&$N$5:$N$24,$P$5:$P$24,,0)="A",F5="")
    Fill-in the color you want.
    Then add this formula:
    =XLOOKUP($B5&F$4,$M$5:$M$24&$N$5:$N$24,$P$5:$P$24,,0)="O"
    and add your formatting, then:
    =AND(XLOOKUP($B5&F$4,$M$5:$M$24&$N$5:$N$24,$P$5:$P$24,,0)="U",F5>0)
    and add your formatting.

    See attached file.

  5. #5
    Registered User
    Join Date
    02-16-2021
    Location
    Phoenix, AZ
    MS-Off Ver
    Office 365
    Posts
    10

    Re: Conditional formating nightmare

    Brb - looking at your response and looking at the file. Might have a follow up for you.

  6. #6
    Registered User
    Join Date
    02-16-2021
    Location
    Phoenix, AZ
    MS-Off Ver
    Office 365
    Posts
    10

    Re: Conditional formating nightmare

    Greg -

    Thank you!
    I am going to spend a bit of time on this so I understand the logic string but I think I get it. Hadn't considered using AND or XLOOKUP. Game changers!
    First time ever on this forum and I know I'll be back often.
    Just took a new job and its Excel all day long. I may not post all the time but I'll be here learning a lot!

    Again, Thanks.

  7. #7
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,829

    Re: Conditional formating nightmare

    Glad it helped and thanks for the rep!

  8. #8
    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,780

    Re: Conditional formating nightmare

    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.
    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.

  9. #9
    Registered User
    Join Date
    02-16-2021
    Location
    Phoenix, AZ
    MS-Off Ver
    Office 365
    Posts
    10
    Quote Originally Posted by Gregb11 View Post
    Glad it helped and thanks for the rep!
    I stayed up working all night and am just now climbing into bed.

    I had fortune with my actual file with the “U” items but the “O” didn’t work and the “A” only worked for one of the items. When I wake in a few hrs, I’ll send back over a snippet. Maybe we can figure out where the issue is at. I’m more than intrigued right now!

+ 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. [SOLVED] Excel 2007 - Conditional Formatting Nightmare.
    By thewigglesworth in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-20-2015, 09:21 PM
  2. Date conditional formatting nightmare
    By Clayt_dog in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-20-2014, 09:48 AM
  3. Replies: 5
    Last Post: 03-14-2014, 04:03 AM
  4. Replies: 4
    Last Post: 01-23-2014, 10:14 AM
  5. Replies: 6
    Last Post: 08-14-2006, 05:00 PM
  6. Replies: 2
    Last Post: 03-27-2006, 12:10 PM
  7. Install dates formating using conditional formating?
    By Jerry Eggleston in forum Excel General
    Replies: 2
    Last Post: 11-09-2005, 01:49 PM

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