Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 32
Default Keep formatting while using drop-down list

Hello,
I have a spreadsheet where every three rows alternate between shaded and
non-shaded.

I am using data validation beginning in cell C5. My list (which is on a
separate sheet) looks like this:
Fruit Apple
Fruit Pear
Veggie Broccoli
Veggie Carrot
.... and so on.

So, the drop down list in C5 contains the second column of values, and when
you select one of them, whatever is next to it in the first column will
automatically display in B5 (e.g. you select 'Pear' and 'Fruit' automatically
appears because of the 'offset' function).

My question is this: the cell with the automatic value, B5, does not keep
the same formatting as the cells around it. How can I copy the formatting
from column A or C when using this offset function? I don't know how to do
conditional formatting to match the formatting next to the cell.

Hope this makes sense! Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default Keep formatting while using drop-down list

Hi,

When I test your idea I do not loose the formatting in the cell?
I have a Data, Validation list in F3:F7 and the formula below is in E3:E7:

=IF(F3="","",OFFSET(Sheet6!A$1,MATCH(F3,Sheet6!B$1 :B$4,0)-1,0))

Format is unaffected you picking an item from the list.

Cheers,
Shane Devenshire


"SLW612" wrote:

Hello,
I have a spreadsheet where every three rows alternate between shaded and
non-shaded.

I am using data validation beginning in cell C5. My list (which is on a
separate sheet) looks like this:
Fruit Apple
Fruit Pear
Veggie Broccoli
Veggie Carrot
... and so on.

So, the drop down list in C5 contains the second column of values, and when
you select one of them, whatever is next to it in the first column will
automatically display in B5 (e.g. you select 'Pear' and 'Fruit' automatically
appears because of the 'offset' function).

My question is this: the cell with the automatic value, B5, does not keep
the same formatting as the cells around it. How can I copy the formatting
from column A or C when using this offset function? I don't know how to do
conditional formatting to match the formatting next to the cell.

Hope this makes sense! Thanks in advance

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 32
Default Keep formatting while using drop-down list

Thanks for your reply Shane.
I tried your formula but I am still losing the shading in the cells with the
formula. I don't know why you are not. The formatting for the dropdown list
is kept, but that automatic value is not.

"ShaneDevenshire" wrote:

Hi,

When I test your idea I do not loose the formatting in the cell?
I have a Data, Validation list in F3:F7 and the formula below is in E3:E7:

=IF(F3="","",OFFSET(Sheet6!A$1,MATCH(F3,Sheet6!B$1 :B$4,0)-1,0))

Format is unaffected you picking an item from the list.

Cheers,
Shane Devenshire


"SLW612" wrote:

Hello,
I have a spreadsheet where every three rows alternate between shaded and
non-shaded.

I am using data validation beginning in cell C5. My list (which is on a
separate sheet) looks like this:
Fruit Apple
Fruit Pear
Veggie Broccoli
Veggie Carrot
... and so on.

So, the drop down list in C5 contains the second column of values, and when
you select one of them, whatever is next to it in the first column will
automatically display in B5 (e.g. you select 'Pear' and 'Fruit' automatically
appears because of the 'offset' function).

My question is this: the cell with the automatic value, B5, does not keep
the same formatting as the cells around it. How can I copy the formatting
from column A or C when using this offset function? I don't know how to do
conditional formatting to match the formatting next to the cell.

Hope this makes sense! Thanks in advance

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default Keep formatting while using drop-down list

Hi,

Either I don't understand your question correctly or I will need to see a
sample file with the problem.

If you want you can send one to
--
Thanks,
Shane Devenshire


"SLW612" wrote:

Thanks for your reply Shane.
I tried your formula but I am still losing the shading in the cells with the
formula. I don't know why you are not. The formatting for the dropdown list
is kept, but that automatic value is not.

"ShaneDevenshire" wrote:

Hi,

When I test your idea I do not loose the formatting in the cell?
I have a Data, Validation list in F3:F7 and the formula below is in E3:E7:

=IF(F3="","",OFFSET(Sheet6!A$1,MATCH(F3,Sheet6!B$1 :B$4,0)-1,0))

Format is unaffected you picking an item from the list.

Cheers,
Shane Devenshire


"SLW612" wrote:

Hello,
I have a spreadsheet where every three rows alternate between shaded and
non-shaded.

I am using data validation beginning in cell C5. My list (which is on a
separate sheet) looks like this:
Fruit Apple
Fruit Pear
Veggie Broccoli
Veggie Carrot
... and so on.

So, the drop down list in C5 contains the second column of values, and when
you select one of them, whatever is next to it in the first column will
automatically display in B5 (e.g. you select 'Pear' and 'Fruit' automatically
appears because of the 'offset' function).

My question is this: the cell with the automatic value, B5, does not keep
the same formatting as the cells around it. How can I copy the formatting
from column A or C when using this offset function? I don't know how to do
conditional formatting to match the formatting next to the cell.

Hope this makes sense! Thanks in advance

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
Drop Down List Formatting II Ian3103 Excel Worksheet Functions 4 December 2nd 06 03:53 AM
Drop Down list formatting Ian3103 Excel Worksheet Functions 3 March 6th 06 10:00 AM
Drop down list formatting Ian31 Excel Discussion (Misc queries) 0 March 3rd 06 02:26 PM
Excel Drop Down List Formatting MJS Excel Discussion (Misc queries) 2 January 13th 06 09:27 PM
formatting drop down list dennis Excel Discussion (Misc queries) 2 January 11th 05 04:21 PM


All times are GMT +1. The time now is 03:37 AM.

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

About Us

"It's about Microsoft Excel"