highlighting cells with no value if they are between cells with value

apor

New Member
Joined
Dec 20, 2021
Messages
25
Office Version
  1. 2016
Platform
  1. Windows
Hello everyone,

I am currently analzying scanning data in a warehouse. The purpose is to find out which days a certain product was not scanned and to highlight it.

The data i am working with is a list of every product scanned and the day on which it was scanned. Then, I used a Pivot Table with y axis product and x axis day. If product A was scanned once on Monday, the field (Product, Day) has a 1. If it was scanned twice, a 2 and so on. I want to highlight the days it was not scanned at all.

I added an image of how i would like the cells highlighted. The added complication in this case is that i cannot simply highlight blank cells, since for example, Product C was not introduced until Wednesday and it is therefore not a mistake that it was not scanned before then. Same goes with for example product F after Friday, since that was the last day it was there.

Any help with this would be greatly appreciated.

Thanks in advance and greeting,

Anna
 

Attachments

  • Screenshot (2).png
    Screenshot (2).png
    155 KB · Views: 9

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Try using conditional format:
-select B2:CCxx where CC means "enough columns" and xx means enough rows
-apply a conditional format, using the following formula: =AND(B2="",SUM($B2:B2)>0,SUM(B2:$CC2)>0) In this formula "CC" means the last column selected
 
Upvote 0
Try using conditional format:
-select B2:CCxx where CC means "enough columns" and xx means enough rows
-apply a conditional format, using the following formula: =AND(B2="",SUM($B2:B2)>0,SUM(B2:$CC2)>0) In this formula "CC" means the last column selected
Hello Anthony, thank you for your response. Unfortunately, i get an error message when i enter this formula. is there maybe a syntax error i do not see?
 
Upvote 0
How did you procede? Which formula did you use?
 

Attachments

  • mrex_Immagine 2023-06-15 224307.jpg
    mrex_Immagine 2023-06-15 224307.jpg
    32.3 KB · Views: 9
Upvote 0
Hello Anthony,

I used

=AND(B2="",SUM($B2:B2)>0,SUM(B2:$H2)>0)

I replaced CC with H and used your table that you sent. However, nothing gets highlighted, even though i used a color for the formatting and deleted all old rules before entering this one.

I also tried this formula as an example =AND($B2>5, $B2<20) and this does not highlight any cells for me either. =$B2<>10 for exmaple does though.
 
Upvote 0
1686898781766.png


This is what he formula loos like if i go back to edit it
 
Upvote 0
That is a string, not a formula. Also AND is And, and SUM is Sum in your local language? And the field separator is comma (,) or semicolon (;)?
 
Upvote 0
Maybe
Excel Formula:
=UND(B2="";SUMME($B2:B2)>0;SUMME(B2:$CC2)>0)

 
Upvote 0
Maybe
Excel Formula:
=UND(B2="";SUMME($B2:B2)>0;SUMME(B2:$CC2)>0)


i changed my language to english and i got a reaction out of the string :)

However, this is the result i get
 

Attachments

  • Capture2.PNG
    Capture2.PNG
    46.2 KB · Views: 5
Upvote 0
I am afraid that you selected the wrong area when you setup the conditional format.
That formula is valid if you select from B2 to the end of your table; if the selected area at the moment is different you will get wrong results
So, my suggestion:
-remove the current conditional format rules
-select B2:XXyy
-apply the conditional format using the given formula
 
Upvote 0

Forum statistics

Threads
1,215,106
Messages
6,123,123
Members
449,096
Latest member
provoking

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top