Home

Formulas & Conditional Formatting

%3CLINGO-SUB%20id%3D%22lingo-sub-473420%22%20slang%3D%22en-US%22%3EFormulas%20%26amp%3B%20Conditional%20Formatting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-473420%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%20%26nbsp%3BI%20have%20%26nbsp%3Ba%20spreadsheet%20that%20has%20about%20300%20rows.%20I%20have%20conditional%20formatting%20set%20to%20highlight%20all%20of%20the%20cells%20that%20are%20blank.%20%26nbsp%3BI%20the%20want%20the%20last%20cell%20in%20each%20row%20(say%20j2)%20to%20return%20how%20many%20cells%20in%20row%202%20are%20highlighted.%20%26nbsp%3BSo%20if%20out%20of%207%20cells%20in%20the%20range%20A2-i2%20there%20are%203%20of%20them%20highlighted%20then%20I%20want%20J2%20to%20return%203.%20%26nbsp%3BI%20will%20then%20copy%20that%20down%20to%20all%20300%20rows%20so%20each%20row%20gives%20me%20a%20total%20of%20highlighted%20cells%20in%20that%20row.%20%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20ideas%3F%20%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-473420%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-473475%22%20slang%3D%22en-US%22%3ERe%3A%20Formulas%20%26amp%3B%20Conditional%20Formatting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-473475%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F323635%22%20target%3D%22_blank%22%3E%40Rickc407%3C%2FA%3E%20%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPerhaps%20I%20misunderstood%20something%2C%20but%20I%20see%20no%20link%20between%20conditional%20formatting%20and%20counting%20of%20blank%20cells.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELet%20say%20you%20have%20conditional%20formatting%20rule%20with%20the%20formula%20%3DISBLANK(A2)%20applied%20to%20your%20range%20%24A%242%3A%24I%24300%20-%20it%20highlights%20all%20blank%20cells.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20count%20the%20for%20each%20row%20you%20may%20use%20%3DCOUNTBLANK(A2%3AI2)%2C%20when%20select%20this%20column%20from%20J2%20till%20J300%20and%20Ctrl%2BD%3C%2FP%3E%3C%2FLINGO-BODY%3E
Rickc407
Occasional Visitor

Hi,  I have  a spreadsheet that has about 300 rows. I have conditional formatting set to highlight all of the cells that are blank.  I the want the last cell in each row (say j2) to return how many cells in row 2 are highlighted.  So if out of 7 cells in the range A2-i2 there are 3 of them highlighted then I want J2 to return 3.  I will then copy that down to all 300 rows so each row gives me a total of highlighted cells in that row.  

 

Any ideas?  

 

Thanks

1 Reply

@Rickc407 ,

 

Perhaps I misunderstood something, but I see no link between conditional formatting and counting of blank cells.

 

Let say you have conditional formatting rule with the formula =ISBLANK(A2) applied to your range $A$2:$I$300 - it highlights all blank cells.

 

To count the for each row you may use =COUNTBLANK(A2:I2), when select this column from J2 till J300 and Ctrl+D