Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Twitty Kitty
 
Posts: n/a
Default How can I copy cell formats in functions?

Is it possible to copy the format of a cell from one worksheet to another
within a statement? for example if I want to copy the formatting of the text
in cell Go!B1 when Cell Go!A1 is null I know I can check for the condition
using:

If(Go!A1="",Go!B1,Go!A1)

This statement will put the text of either Go!A1 or Go!B1 into the selected
cell depending on if cell Go!A1 is empty or not. If it is empty, then this
is a header row and the text is in B1 so I want to copy that text (and its
formatting if possible) to the summary sheet.

The Summary sheet is dynamic so the rows can change, which is why I want to
link the data rows via statements rather than hardcoding them.

Is there any way to include the formatting of the text in the "copy" process
of the statement when the cell being copied is the header?

Any and all help and ideas are appreciated!
--
Searching for Enlightenment
  #2   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

A formula can't return the formatting from another cell, only the value.
Perhaps you could use conditional formatting to change the appearance,
based on the formula results.

Twitty Kitty wrote:
Is it possible to copy the format of a cell from one worksheet to another
within a statement? for example if I want to copy the formatting of the text
in cell Go!B1 when Cell Go!A1 is null I know I can check for the condition
using:

If(Go!A1="",Go!B1,Go!A1)

This statement will put the text of either Go!A1 or Go!B1 into the selected
cell depending on if cell Go!A1 is empty or not. If it is empty, then this
is a header row and the text is in B1 so I want to copy that text (and its
formatting if possible) to the summary sheet.

The Summary sheet is dynamic so the rows can change, which is why I want to
link the data rows via statements rather than hardcoding them.

Is there any way to include the formatting of the text in the "copy" process
of the statement when the cell being copied is the header?

Any and all help and ideas are appreciated!



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

  #3   Report Post  
Twitty Kitty
 
Posts: n/a
Default

Thank you Debra. that cleared up one question. Now all I need to figure out
is how to get conditional formatting to "accept" references to another
worksheet, or a way around that... Any Ideas?
--
Searching for Enlightenment


"Debra Dalgleish" wrote:

A formula can't return the formatting from another cell, only the value.
Perhaps you could use conditional formatting to change the appearance,
based on the formula results.

Twitty Kitty wrote:
Is it possible to copy the format of a cell from one worksheet to another
within a statement? for example if I want to copy the formatting of the text
in cell Go!B1 when Cell Go!A1 is null I know I can check for the condition
using:

If(Go!A1="",Go!B1,Go!A1)

This statement will put the text of either Go!A1 or Go!B1 into the selected
cell depending on if cell Go!A1 is empty or not. If it is empty, then this
is a header row and the text is in B1 so I want to copy that text (and its
formatting if possible) to the summary sheet.

The Summary sheet is dynamic so the rows can change, which is why I want to
link the data rows via statements rather than hardcoding them.

Is there any way to include the formatting of the text in the "copy" process
of the statement when the cell being copied is the header?

Any and all help and ideas are appreciated!



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html


  #4   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

You can refer to a named range on another sheet.

For example, name Go!A1 as Head01 and Go!B1 as Head02

Then, in conditional formatting in the linked cell, choose Formula Is,
and enter the formula: =Head01=""

There are instructions here for naming ranges:

http://www.contextures.com/xlNames01.html

Twitty Kitty wrote:
Thank you Debra. that cleared up one question. Now all I need to figure out
is how to get conditional formatting to "accept" references to another
worksheet, or a way around that... Any Ideas?



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

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
copy combobox - cell link to change automatically Bojana Excel Worksheet Functions 1 June 8th 05 02:35 PM
Maximum Number of Cell Formats Jim Allen Excel Discussion (Misc queries) 4 April 19th 05 07:07 PM
Changing Cell formats to date fields automatically PCLIVE Excel Worksheet Functions 3 April 12th 05 10:34 PM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM
How do you copy a cell formula down a column without displaying n. Coddie Excel Worksheet Functions 4 January 18th 05 02:31 PM


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