+ Reply to Thread
Results 1 to 3 of 3

Conditional formatting over multiple sheets

  1. #1
    Registered User
    Join Date
    03-29-2020
    Location
    Nottingham, England
    MS-Off Ver
    2013
    Posts
    6

    Conditional formatting over multiple sheets

    Hi Folks!

    I have a parts inventory that I am trying to manage in Excel and I want to set up a warning to stop me going into negative stock on any given line item if I try to issue more units than I have in stock; ideally by changing the colour of a cell, or having a pop up warning appear through some sort of data validation setting.

    I have one sheet called Stock with the following columns
    Stock # (serial index number relating to a given part in the inventory)
    typing the Stock # autofills the rest of the line with item information from another catalogue sheet in the workbook.
    Received Qty (displayed using a SUMIF function),
    Issued Qty(displayed using a different SUMIF function),
    Stock Level (displayed using =Received Qty-Issued Qty)

    I have another sheet called Job where I type in the Stock # of a part I need in one column, and how many pieces of that part are needed in another column called Count

    What I want to happen is for the cell in the Count column on the Job sheet to turn red if I type in a number that is greater than the Stock Level value in the Stock sheet for the corresponding item, thus causing it to go into negative stock.

    I have tried to use conditional formatting on the Job sheet to achieve this
    using the formula =Stock!$M:$M<0
    where Stock! refers to the Stock Sheet,
    and M refers to the column containing the Stock Level value,
    and setting the "Applies To" range to the Count column on the Job sheet.

    I have also tried applying it to one cell =Stock!$M$3<0
    and applying it to a range =Stock!$M$3:$M$269<0
    I've also tried similar efforts in Highlight Cells Rules but for some reason none of these succeed in highlighting the cell when the stock goes into negative.

    What am I missing?
    Thanks in advance
    Attached Files Attached Files
    Last edited by BillyGoat123; 03-29-2020 at 12:48 AM.

  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,460

    Re: Conditional formatting over multiple sheets

    I think you need to create named ranges for CF to work across worksheets.
    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
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Conditional formatting over multiple sheets

    Independently of Ali's suggestion ( which is the way to go) the following syntax should be applied for CF ( in general)
    I have also tried applying it to one cell =Stock!$M$3<0
    and applying it to a range =Stock!$M$3:$M$269<0
    Should be
    I have also tried applying it to one cell =$M3<0
    and applying it to a range =$M$3:$M$269
    and a CF like =Stock!$M:$M<0 does not work AFAIK

+ 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 Across Multiple Sheets
    By Flat Banana in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-07-2016, 01:15 PM
  2. Conditional Formatting (I think?) with Multiple Sheets
    By DocBenzedrine in forum Excel General
    Replies: 3
    Last Post: 01-27-2014, 05:55 AM
  3. [SOLVED] Conditional Formatting across Multiple Sheets
    By madness in forum Excel General
    Replies: 2
    Last Post: 04-10-2013, 06:09 AM
  4. Conditional Formatting For Multiple Sheets
    By Mhz in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 03-07-2012, 12:54 PM
  5. Excel 2007 : Conditional formatting - multiple sheets
    By Spike0907 in forum Excel General
    Replies: 4
    Last Post: 01-31-2011, 12:11 PM
  6. Conditional formatting multiple sheets?
    By preddy1110 in forum Excel General
    Replies: 1
    Last Post: 11-23-2010, 09:09 AM
  7. VBA Conditional Formatting Multiple Sheets
    By Michael Chandrapal in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-27-2010, 05:15 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