![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Posts: 7,743
|
Good Morning,
I have in row 1 dates, 1,2,3 etc. In row 2 I have days, mon, tue, wed, that corresponds to row 1. In row 3, I would like to shade days off, and not necessarily sat/sun, but also mon/tue etc. The month does not matter. Can the shading be done by using a condtional format, instead of clicking the cells and formatting them manually? Mahalo..... Brian [ This Message was edited by: Brian from Maui on 2002-02-24 07:00 ] |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,314
|
Quote:
Aladin |
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Posts: 7,743
|
Aladin,
As you well know, my knowledge of formulas and Excel is very limited, doing VBA codes is something I'd like to avoid. I'm trying different IF functions. Brian |
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,314
|
Quote:
|
|
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Feb 2002
Posts: 7,743
|
Aladin,
Actually, I only need one color. And only two conditons. If a2="mon and b2="tue, then color a3 and b3, but my range is from a2:o2. Make sense. I'm trying a countif and if functions. Brian [ This Message was edited by: Brian from Maui on 2002-02-24 07:59 ] |
|
|
|
|
|
#6 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,314
|
Quote:
Activate Format|Conditional Formatting. Choose Formula Is for Condition 1. Enter in the Formula Box: =AND($A$2="mon",$B$2="tue") Activate Format. Choose a color on the Patterns tab. Click OK, OK. |
|
|
|
|
|
|
#7 |
|
Board Regular
Join Date: Feb 2002
Posts: 7,743
|
Aladin,
The =and doesn't work. I've used in a3 countif(a2:o2,"mon") and that works for one cell, but copy and pasting along the rows, colors the whole row. Brian |
|
|
|
|
|
#8 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,314
|
Quote:
What do you want exactly? Is it, If a2="mon" and b2="tue", (a) color a3 and b3 as you intially stated or (b) color row 3? If (b), select row 3 by clicking the row indicator, apply the proc I described. |
|
|
|
|
|
|
#9 |
|
Board Regular
Join Date: Feb 2002
Posts: 7,743
|
Aladin,
What I want is: if a2=mon,b2=tue, color a3 and b3. Then I need to drag the format for the whole work month. I've selected a3 and b3, put the formula in, selected a color, but the cells are still blank. Brian |
|
|
|
|
|
#10 |
|
Board Regular
Join Date: Feb 2002
Posts: 3,064
|
Hi brian how the coast sunny i bet! Rain and RAIN!
Lokk if you need some VBA code can i help i have 25 or so conditions that work at a snal subject to col data i wanted line / row coloured... If so email me at my work you have me email and send the sheet ill have a look and sed back Rdgs
__________________
Free Excel based Web Toolbar available here. Jack in the UK J & R Excel Solutions "making Excel work for you" |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|