Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / June 2007

Tip: Looking for answers? Try searching our database.

Keep formatting while using drop-down list

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
SLW612 - 15 Jun 2007 22:24 GMT
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
ShaneDevenshire - 16 Jun 2007 06:30 GMT
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

> Hello,
> I have a spreadsheet where every three rows alternate between shaded and
[quoted text clipped - 19 lines]
>
> Hope this makes sense! Thanks in advance
SLW612 - 18 Jun 2007 13:20 GMT
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.

> Hi,
>
[quoted text clipped - 31 lines]
> >
> > Hope this makes sense! Thanks in advance
ShaneDevenshire - 19 Jun 2007 02:29 GMT
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 shanedevenshire@sbcglobal.net
Signature

Thanks,
Shane Devenshire

> Thanks for your reply Shane.
> I tried your formula but I am still losing the shading in the cells with the
[quoted text clipped - 36 lines]
> > >
> > > Hope this makes sense! Thanks in advance
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.