Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Pasquini
 
Posts: n/a
Default formatting cell number based on previous cell number

I would like to format a cell to turn red and bold, when it is a number other
than the previous cell. And, I would like it to stay black when it is the
same number as the previous cell.

Ex.

A1=30 (Red & Bold)
A2=30 (Black)
A3=45 (Red & Bold)
A4=45 (Black)
A5=45 (Black)
etc.
  #2   Report Post  
Posted to microsoft.public.excel.misc
bpeltzer
 
Posts: n/a
Default formatting cell number based on previous cell number

You can do this with conditional formatting.
Select cell A2, then Format Conditional Formatting. Use the drop-down and
text box to make your condition 'Formula Is' '=(A2=A1)', then select the
format you want (red bold text) and click OK. Then use the format painter to
copy the format from A2 to other cells in the column.

"Pasquini" wrote:

I would like to format a cell to turn red and bold, when it is a number other
than the previous cell. And, I would like it to stay black when it is the
same number as the previous cell.

Ex.

A1=30 (Red & Bold)
A2=30 (Black)
A3=45 (Red & Bold)
A4=45 (Black)
A5=45 (Black)
etc.

  #3   Report Post  
Posted to microsoft.public.excel.misc
Pasquini
 
Posts: n/a
Default formatting cell number based on previous cell number

Thank you for your extremely quick response. Your solution worked to a
degree...I would like if format the opposite way. With your wonderful
suggestion it currently does:

A1=30 (black)
A2=30 (red/bold)
A3=45(black)
A4=45(red/bold)
A5=45(red/bold)

Is there a way to say '=(A2NOTEQUALA1)' as opposed to '=(A2=A1)'?

"bpeltzer" wrote:

You can do this with conditional formatting.
Select cell A2, then Format Conditional Formatting. Use the drop-down and
text box to make your condition 'Formula Is' '=(A2=A1)', then select the
format you want (red bold text) and click OK. Then use the format painter to
copy the format from A2 to other cells in the column.

"Pasquini" wrote:

I would like to format a cell to turn red and bold, when it is a number other
than the previous cell. And, I would like it to stay black when it is the
same number as the previous cell.

Ex.

A1=30 (Red & Bold)
A2=30 (Black)
A3=45 (Red & Bold)
A4=45 (Black)
A5=45 (Black)
etc.

  #4   Report Post  
Posted to microsoft.public.excel.misc
Pasquini
 
Posts: n/a
Default formatting cell number based on previous cell number

Ok, so with a little bit more research I found that '=NOT' was the answer I
was looking for. So the formula should read '=NOT(A2=A1)' to acheive the
desired results. Thank you so much for your help, I was really stumped
before you lead me in the right direction!

"bpeltzer" wrote:

You can do this with conditional formatting.
Select cell A2, then Format Conditional Formatting. Use the drop-down and
text box to make your condition 'Formula Is' '=(A2=A1)', then select the
format you want (red bold text) and click OK. Then use the format painter to
copy the format from A2 to other cells in the column.

"Pasquini" wrote:

I would like to format a cell to turn red and bold, when it is a number other
than the previous cell. And, I would like it to stay black when it is the
same number as the previous cell.

Ex.

A1=30 (Red & Bold)
A2=30 (Black)
A3=45 (Red & Bold)
A4=45 (Black)
A5=45 (Black)
etc.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formatting a cell based on another cells value b o b Excel Discussion (Misc queries) 1 June 16th 06 11:48 PM
Instead of a negative number, I'd like to show zero... Dr. Darrell Excel Worksheet Functions 6 December 7th 05 08:21 PM
select cell based on a number in another cell [email protected] New Users to Excel 3 December 6th 05 09:44 PM
How to do a conditional formatting based on an adjacent cell Confused Excel Discussion (Misc queries) 2 January 10th 05 09:55 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 01:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"