Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
uriel78
 
Posts: n/a
Default INDEX and format of cells

Is it possibile to obtain that INDEX functions give back a value with its
format (colour, text...)?


  #2   Report Post  
David McRitchie
 
Posts: n/a
Default

I do not quite understand the question,
but with User Defined Functions you can obtain the
You can get the Color Index
value of the font or the interior (pattern) of cell,
see Chip Pearson's "Functions For Cell Colors
http://www.cpearson.com/excel/colors.htm

However, there should be better ways of keeping track of
things than trying to match colors. Values of cells would
be a lot better.

For more information on Color see
http://www.mvps.org/dmcritchie/excel/colors.htm
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"uriel78" wrote in message ...
Is it possibile to obtain that INDEX functions give back a value with its
format (colour, text...)?




  #3   Report Post  
uriel78
 
Posts: n/a
Default

Thank you for the answer!
I've already seen Pearson's suggestions, but still I don't know how to apply
them to my case.

In sheet 1 column A:A I've got a series of values called (e101,e302...and so
on) formatted with two colours
In sheet 2, I use index function to retrieve those values

for example: in sheet2

D2=IF(C3="";"";INDEX(sheet1$A:$A;C3))

In this case, in D2 I obtain "e302"

Now, I just want that D2 value is formatted as its corripondent ("e302") in
sheet1 A:A

I hope to be more clear this time...


"David McRitchie" ha scritto nel messaggio
...
I do not quite understand the question,
but with User Defined Functions you can obtain the
You can get the Color Index
value of the font or the interior (pattern) of cell,
see Chip Pearson's "Functions For Cell Colors
http://www.cpearson.com/excel/colors.htm

However, there should be better ways of keeping track of
things than trying to match colors. Values of cells would
be a lot better.

For more information on Color see
http://www.mvps.org/dmcritchie/excel/colors.htm
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"uriel78" wrote in message

...
Is it possibile to obtain that INDEX functions give back a value with

its
format (colour, text...)?






  #4   Report Post  
David McRitchie
 
Posts: n/a
Default

See my page on color. It will show you how to use Chip's
functions. http://www.mvps.org/dmcritchie/excel/colors.htm

If it is a matter of how to install a user function see
http://www.mvps.org/dmcritchie/excel/getstarted.htm
--
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"uriel78" wrote in message ...
Thank you for the answer!
I've already seen Pearson's suggestions, but still I don't know how to apply
them to my case.

In sheet 1 column A:A I've got a series of values called (e101,e302...and so
on) formatted with two colours
In sheet 2, I use index function to retrieve those values

for example: in sheet2

D2=IF(C3="";"";INDEX(sheet1$A:$A;C3))

In this case, in D2 I obtain "e302"

Now, I just want that D2 value is formatted as its corripondent ("e302") in
sheet1 A:A

I hope to be more clear this time...


"David McRitchie" ha scritto nel messaggio
...
I do not quite understand the question,
but with User Defined Functions you can obtain the
You can get the Color Index
value of the font or the interior (pattern) of cell,
see Chip Pearson's "Functions For Cell Colors
http://www.cpearson.com/excel/colors.htm

However, there should be better ways of keeping track of
things than trying to match colors. Values of cells would
be a lot better.

For more information on Color see
http://www.mvps.org/dmcritchie/excel/colors.htm
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"uriel78" wrote in message

...
Is it possibile to obtain that INDEX functions give back a value with

its
format (colour, text...)?








  #5   Report Post  
David McRitchie
 
Posts: n/a
Default

Sorry I didn't really read you reply post and it was too late to delete
my reply. I guess you've seen Chip's page on MATCH and INDEX
Lookups
http://www.cpearson.com/excel/lookups.htm

You want the same format in a cell that retrieves the value of another
cell and you cannot do that with a function. A function cannot change
the formatting of any cell including itself. If there are only 3 possible
colors (4 with the default) you might be able to use conditional formatting.
If the formatting is a change of numeric formatting or something other
than CF you would need to use a macro.

A change event macro and you would have to program it from when the
E302 cell changes. http://www.mvps.org/dmcritchie/excel/event.htm
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"uriel78" wrote in message ...
Thank you for the answer!
I've already seen Pearson's suggestions, but still I don't know how to apply
them to my case.

In sheet 1 column A:A I've got a series of values called (e101,e302...and so
on) formatted with two colours
In sheet 2, I use index function to retrieve those values

for example: in sheet2

D2=IF(C3="";"";INDEX(sheet1$A:$A;C3))

In this case, in D2 I obtain "e302"

Now, I just want that D2 value is formatted as its corripondent ("e302") in
sheet1 A:A

I hope to be more clear this time...


"David McRitchie" ha scritto nel messaggio
...
I do not quite understand the question,
but with User Defined Functions you can obtain the
You can get the Color Index
value of the font or the interior (pattern) of cell,
see Chip Pearson's "Functions For Cell Colors
http://www.cpearson.com/excel/colors.htm

However, there should be better ways of keeping track of
things than trying to match colors. Values of cells would
be a lot better.

For more information on Color see
http://www.mvps.org/dmcritchie/excel/colors.htm
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"uriel78" wrote in message

...
Is it possibile to obtain that INDEX functions give back a value with

its
format (colour, text...)?










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
Number is in a text format dbl Excel Worksheet Functions 1 February 19th 05 08:57 PM
Text manipulaion (summarizing customer records) Index function probably not good choice Paul Buob Excel Discussion (Misc queries) 1 February 1st 05 06:41 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 07:23 AM.

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"