+ Reply to Thread
Results 1 to 13 of 13

Conditional Formatting Null as not seen and Zero as seen

  1. #1
    Forum Contributor
    Join Date
    09-12-2015
    Location
    Okinawa, Japan
    MS-Off Ver
    2013
    Posts
    175

    Conditional Formatting Null as not seen and Zero as seen

    I have a formula that brings cell values from Sheet 1 to Sheet 2. If a cell is on Sheet 1 is empty, the result on Sheet 2 is a 0. I want to conditionally format the cells to hide the 0 that results from an empty cell. HOWEVER if Sheet 1 has a 0 and the result on Sheet 2 is that 0, I want that 0 to be displayed.

    Is this possible using Conditional Formatting or does Excel treat all zeros (true 0 and empty cell) equally?

    Please help.
    Last edited by majime01; 06-23-2022 at 12:20 AM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    22,626

    Re: Conditional Formatting Problem

    One way of doing this (in general, as you do not quote the formula you are using) is to modify your_formula along the lines of:

    =IF(your_formula="","",your_formula)

    Hope this helps.

    Pete

  3. #3
    Valued Forum Contributor
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    732

    Re: Conditional Formatting Problem

    Can't you test if your cell in sheet1 is empty, and if it is make your cell in sheet2 a null, otherwise make it equal to your cell in sheet1 (or whatever the formula is)?

    eg; =IF(Sheet1!F2="","",Sheet1!F2*3)

    Edit: Come on Pete! Stop drawing so fast!
    Last edited by Croweater; 06-22-2022 at 08:37 PM.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    22,626

    Re: Conditional Formatting Problem

    Well, I'm about to go to bed, so you can have the stage to yourself !!

    Pete

  5. #5
    Valued Forum Contributor
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    732

    Re: Conditional Formatting Problem

    LOL. Cheers. The Missus is dragging me to Ikea though!

  6. #6
    Forum Contributor
    Join Date
    09-12-2015
    Location
    Okinawa, Japan
    MS-Off Ver
    2013
    Posts
    175

    Re: Conditional Formatting Problem

    Sorry, here is the formula I'm using.

    =IFERROR(VLOOKUP(D4&"A",'QPS - 1st Grade'!A7:AX270,7,FALSE),IFERROR(VLOOKUP(D4&"A",'QPS - 2nd Grade'!A7:AX270,7,FALSE),IFERROR(VLOOKUP(D4&"A",'QPS - 3rd Grade '!A7:AX270,7,FALSE),IFERROR(VLOOKUP(D4&"A",'QPS - 4th Grade'!A7:AX270,7,FALSE),IFERROR(VLOOKUP(D4&"A",'QPS - 5th Grade'!A7:AX270,7,FALSE),"none selected")))))

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel (Windows 11 64-bit)
    Posts
    60,736

    Re: Conditional Formatting Problem

    Administrative Note:

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" to anyone who has offered you help in your thread. You can reward them by clicking on * Add Reputation below theur user name on the left, if you wish.


    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.

  8. #8
    Forum Contributor
    Join Date
    09-12-2015
    Location
    Okinawa, Japan
    MS-Off Ver
    2013
    Posts
    175

    Re: Conditional Formatting Null as not seen and Zero as seen

    per your request

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel (Windows 11 64-bit)
    Posts
    60,736

    Re: Conditional Formatting Null as not seen and Zero as seen

    That's better - thanks.

    Now, please provide a sample workbook.

  10. #10
    Forum Contributor
    Join Date
    09-12-2015
    Location
    Okinawa, Japan
    MS-Off Ver
    2013
    Posts
    175

    Re: Conditional Formatting Null as not seen and Zero as seen

    I figured it out. Using the following works great.

    =IF(IFERROR(VLOOKUP(D4&"A",'QPS - 1st Grade'!A7:AX270,7,FALSE),IFERROR(VLOOKUP(D4&"A",'QPS - 2nd Grade'!A7:AX270,7,FALSE),IFERROR(VLOOKUP(D4&"A",'QPS - 3rd Grade '!A7:AX270,7,FALSE),IFERROR(VLOOKUP(D4&"A",'QPS - 4th Grade'!A7:AX270,7,FALSE),IFERROR(VLOOKUP(D4&"A",'QPS - 5th Grade'!A7:AX270,7,FALSE),"none selected")))))="","",=IFERROR(VLOOKUP(D4&"A",'QPS - 1st Grade'!A7:AX270,7,FALSE),IFERROR(VLOOKUP(D4&"A",'QPS - 2nd Grade'!A7:AX270,7,FALSE),IFERROR(VLOOKUP(D4&"A",'QPS - 3rd Grade '!A7:AX270,7,FALSE),IFERROR(VLOOKUP(D4&"A",'QPS - 4th Grade'!A7:AX270,7,FALSE),IFERROR(VLOOKUP(D4&"A",'QPS - 5th Grade'!A7:AX270,7,FALSE),"none selected")))))

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel (Windows 11 64-bit)
    Posts
    60,736

    Re: Conditional Formatting Null as not seen and Zero as seen

    It doesn't look like a very efficeient solution. I am sure we could have come up with something better for you. If you provide a workbook, we can see if it's possoble.

  12. #12
    Valued Forum Contributor
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    732

    Re: Conditional Formatting Null as not seen and Zero as seen

    Looks like the same solution offered in posts 2 and 3...but I'm glad you figured it out.

  13. #13
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    22,626

    Re: Conditional Formatting Null as not seen and Zero as seen

    You don't need the = sign in the middle of the formula.

    Pete

+ 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 Problem
    By Fuyuu in forum Excel General
    Replies: 5
    Last Post: 03-13-2022, 11:01 PM
  2. [SOLVED] Conditional Formatting Problem
    By MattHamby in forum Outlook Formatting & Functions
    Replies: 3
    Last Post: 10-07-2018, 05:20 PM
  3. Conditional formatting problem
    By jackmcguigan1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-18-2018, 07:36 AM
  4. Conditional formatting problem
    By zvit in forum Excel General
    Replies: 4
    Last Post: 06-09-2014, 04:37 PM
  5. [SOLVED] Conditional Formatting Problem
    By timbo1957 in forum Excel General
    Replies: 1
    Last Post: 06-21-2012, 06:39 AM
  6. Conditional formatting problem
    By 1eyedjack in forum Excel General
    Replies: 4
    Last Post: 10-15-2009, 07:11 AM
  7. Conditional Formatting Problem
    By andyp161 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-06-2005, 08:46 AM

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