Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Laura4363
 
Posts: n/a
Default Conditional formatting based on a date + 30 days

I've been looking at this all day and I'm sure there's a very simple answer,
maybe a fresh pair of eyes might be able to help me out!
I have a spreadsheet (in Excel 2003) which looks roughly like this:

A B C
1 Sent Returned Overdue
2 10/12/05 04/01/06
3 20/12/05
4 12/10/05

What I want is, if the item hasn't been returned within 30 days of the sent
date, the appropriate cell in the overdue column should turn red. But if it
has been returned, or it's not due yet, the cell should stay blank (i.e.
white). So in the example above, cells C2 and C3 would be blank, and C4
would be red.

I've tried conditional formatting, but I can't figure out how to get it to
work out the "date + 30 days" bit in column A. Plus I need it to ignore
column A if there's something in column B. I've found various answers but
they all seem to relate to comparing everything to today's date and that's
not what I want!

Any help would be appreciated, and I'm sorry if it's a bit confusing!
  #2   Report Post  
Posted to microsoft.public.excel.misc
jbtenor1
 
Posts: n/a
Default Conditional formatting based on a date + 30 days

Hi Laura,

You need to enter a formula into C2 that subtracts B2 from A2 (=B2-A2).
Make sure to format C2 as a number. Then, in the conditional formatting,
have it color the cell red if the number is greater than 30. You can format
the text white so that the number doesn't show if you want.

Does this help?

"Laura4363" wrote:

I've been looking at this all day and I'm sure there's a very simple answer,
maybe a fresh pair of eyes might be able to help me out!
I have a spreadsheet (in Excel 2003) which looks roughly like this:

A B C
1 Sent Returned Overdue
2 10/12/05 04/01/06
3 20/12/05
4 12/10/05

What I want is, if the item hasn't been returned within 30 days of the sent
date, the appropriate cell in the overdue column should turn red. But if it
has been returned, or it's not due yet, the cell should stay blank (i.e.
white). So in the example above, cells C2 and C3 would be blank, and C4
would be red.

I've tried conditional formatting, but I can't figure out how to get it to
work out the "date + 30 days" bit in column A. Plus I need it to ignore
column A if there's something in column B. I've found various answers but
they all seem to relate to comparing everything to today's date and that's
not what I want!

Any help would be appreciated, and I'm sorry if it's a bit confusing!

  #3   Report Post  
Posted to microsoft.public.excel.misc
dannykuk
 
Posts: n/a
Default Conditional formatting based on a date + 30 days

I Know you dont want to use todays date however this may work
=IF(AND($D$1(or any cell with todays date)-A2<30,B2=""),"Y","N")
To get todays date just use an =TODAY()
Then you would just have to conditionally format the cells as to whether
they have a Y or N in them

"Laura4363" wrote:

I've been looking at this all day and I'm sure there's a very simple answer,
maybe a fresh pair of eyes might be able to help me out!
I have a spreadsheet (in Excel 2003) which looks roughly like this:

A B C
1 Sent Returned Overdue
2 10/12/05 04/01/06
3 20/12/05
4 12/10/05

What I want is, if the item hasn't been returned within 30 days of the sent
date, the appropriate cell in the overdue column should turn red. But if it
has been returned, or it's not due yet, the cell should stay blank (i.e.
white). So in the example above, cells C2 and C3 would be blank, and C4
would be red.

I've tried conditional formatting, but I can't figure out how to get it to
work out the "date + 30 days" bit in column A. Plus I need it to ignore
column A if there's something in column B. I've found various answers but
they all seem to relate to comparing everything to today's date and that's
not what I want!

Any help would be appreciated, and I'm sorry if it's a bit confusing!

  #4   Report Post  
Posted to microsoft.public.excel.misc
Reg
 
Posts: n/a
Default Conditional formatting based on a date + 30 days

in the conditional format c2 use 'formula is' and put

=AND(ISBLANK($B19),($C19+30TODAY()))

Then use format painter to replicate it down the column

Reg


"Laura4363" wrote:

I've been looking at this all day and I'm sure there's a very simple answer,
maybe a fresh pair of eyes might be able to help me out!
I have a spreadsheet (in Excel 2003) which looks roughly like this:

A B C
1 Sent Returned Overdue
2 10/12/05 04/01/06
3 20/12/05
4 12/10/05

What I want is, if the item hasn't been returned within 30 days of the sent
date, the appropriate cell in the overdue column should turn red. But if it
has been returned, or it's not due yet, the cell should stay blank (i.e.
white). So in the example above, cells C2 and C3 would be blank, and C4
would be red.

I've tried conditional formatting, but I can't figure out how to get it to
work out the "date + 30 days" bit in column A. Plus I need it to ignore
column A if there's something in column B. I've found various answers but
they all seem to relate to comparing everything to today's date and that's
not what I want!

Any help would be appreciated, and I'm sorry if it's a bit confusing!

  #5   Report Post  
Posted to microsoft.public.excel.misc
Reg
 
Posts: n/a
Default Conditional formatting based on a date + 30 days

Sorry that should have read:

=AND(ISBLANK($B19),($A19+30<TODAY()))

"Laura4363" wrote:

I've been looking at this all day and I'm sure there's a very simple answer,
maybe a fresh pair of eyes might be able to help me out!
I have a spreadsheet (in Excel 2003) which looks roughly like this:

A B C
1 Sent Returned Overdue
2 10/12/05 04/01/06
3 20/12/05
4 12/10/05

What I want is, if the item hasn't been returned within 30 days of the sent
date, the appropriate cell in the overdue column should turn red. But if it
has been returned, or it's not due yet, the cell should stay blank (i.e.
white). So in the example above, cells C2 and C3 would be blank, and C4
would be red.

I've tried conditional formatting, but I can't figure out how to get it to
work out the "date + 30 days" bit in column A. Plus I need it to ignore
column A if there's something in column B. I've found various answers but
they all seem to relate to comparing everything to today's date and that's
not what I want!

Any help would be appreciated, and I'm sorry if it's a bit confusing!



  #6   Report Post  
Posted to microsoft.public.excel.misc
Laura4363
 
Posts: n/a
Default Conditional formatting based on a date + 30 days

Sorry, I wasn't ignoring everybody, I thought I would get a mail when there
was a reply but I didn't! Thanks for all the answers, but none of them seem
to work.

"Reg" wrote:

Sorry that should have read:

=AND(ISBLANK($B19),($A19+30<TODAY()))

"Laura4363" wrote:

I've been looking at this all day and I'm sure there's a very simple answer,
maybe a fresh pair of eyes might be able to help me out!
I have a spreadsheet (in Excel 2003) which looks roughly like this:

A B C
1 Sent Returned Overdue
2 10/12/05 04/01/06
3 20/12/05
4 12/10/05

What I want is, if the item hasn't been returned within 30 days of the sent
date, the appropriate cell in the overdue column should turn red. But if it
has been returned, or it's not due yet, the cell should stay blank (i.e.
white). So in the example above, cells C2 and C3 would be blank, and C4
would be red.

I've tried conditional formatting, but I can't figure out how to get it to
work out the "date + 30 days" bit in column A. Plus I need it to ignore
column A if there's something in column B. I've found various answers but
they all seem to relate to comparing everything to today's date and that's
not what I want!

Any help would be appreciated, and I'm sorry if it's a bit confusing!

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
conditional formatting date shane561 Excel Discussion (Misc queries) 2 December 27th 05 01:38 AM
Conditional Formatting - Formula based Nick Danger Excel Worksheet Functions 4 October 10th 05 06:40 PM
difficulty with conditional formatting Deb Excel Discussion (Misc queries) 0 March 23rd 05 06:13 PM
How do I set a date range for conditional formatting in a macro? billo Excel Worksheet Functions 3 February 7th 05 06:19 PM
Conditional Formatting (Date vs Number) [email protected] Excel Discussion (Misc queries) 7 December 20th 04 10:23 PM


All times are GMT +1. The time now is 02:44 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"