Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Excel: suppress if cell above has the same value?

Is it possible in Excel to suppress values in a column when the cell above has the same value?

I want something like this :

A            1234
             2345
             3456
B            4567
C            5678
             6789
D            7890
             8901

where the 2 cells under A are actually A, but hidden.

Ideally I'd want this in some sort of formula, because the data comes from a mysql merge and it has to do this automatically...

like image 529
Dylan Avatar asked Feb 07 '12 09:02

Dylan


People also ask

How do I highlight a cell if another cell has a value?

To highlight cells based on another cell's value, you can create a custom formula within a conditional formatting rule. Select the range you want to apply formatting to. In the Ribbon, select Home > Conditional Formatting > New Rule.

How do you highlight a cell in Excel if value is less than?

Choose Settings for Less Than In the first box, type 50 -- we want to highlight numbers that are less than that number. In the second box, click the drop down arrow. Click on Light Red Fill. Click OK, to apply the Conditional Formatting to the selected cells.


1 Answers

This can be achieved with conditional formatting.

Assuming the data you want to hide is in Column A, for cell A2 set Conditional Formatting formula to =A2=A1 and format to Number, Custom, ;;; then copy format down the column

like image 138
chris neilsen Avatar answered Sep 19 '22 20:09

chris neilsen