Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default IF statement --- repost

Hi, ALL:

Not sure why my previous post didn't show up. This is a repost.

Basically, if I shade a cell with color green (cell format\pattern), I
want to return a pure number of 1. Otherwise, return a value of 0. How
to achieve this by using a if statement?

Thanks,

Jorge

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,311
Default IF statement --- repost

This was the reply to your previous post.

First we need to know what the Conditional Formatting is that determines the
cell to be green. You should be able to use the same formula.
__------------------

Basically, your if statement will be something like this:

=IF(A10,1,0)

But we still need to know how the conditional formatting is set up before an
accurate formula can be written.

Regards,
Paul

wrote in message
oups.com...
Hi, ALL:

Not sure why my previous post didn't show up. This is a repost.

Basically, if I shade a cell with color green (cell format\pattern), I
want to return a pure number of 1. Otherwise, return a value of 0. How
to achieve this by using a if statement?

Thanks,

Jorge



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default IF statement --- repost

You'll need to use a macro/UDF:

See

http://cpearson.com/excel/colors.htm

In article .com,
" wrote:

Hi, ALL:

Not sure why my previous post didn't show up. This is a repost.

Basically, if I shade a cell with color green (cell format\pattern), I
want to return a pure number of 1. Otherwise, return a value of 0. How
to achieve this by using a if statement?

Thanks,

Jorge

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default IF statement --- repost

PCLIVE:

No, the OP didn't say that he/she used Conditional Formatting...

In article ,
"PCLIVE" wrote:

This was the reply to your previous post.

First we need to know what the Conditional Formatting is that determines the
cell to be green. You should be able to use the same formula.
__------------------

Basically, your if statement will be something like this:

=IF(A10,1,0)

But we still need to know how the conditional formatting is set up before an
accurate formula can be written.

Regards,
Paul

wrote in message
oups.com...
Hi, ALL:

Not sure why my previous post didn't show up. This is a repost.

Basically, if I shade a cell with color green (cell format\pattern), I
want to return a pure number of 1. Otherwise, return a value of 0. How
to achieve this by using a if statement?

Thanks,

Jorge

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,311
Default IF statement --- repost

Sorry JE, My mind read faster than my eyes and I didn't re-read it the
second time.
Thanks for the correction.


"JE McGimpsey" wrote in message
...
PCLIVE:

No, the OP didn't say that he/she used Conditional Formatting...

In article ,
"PCLIVE" wrote:

This was the reply to your previous post.

First we need to know what the Conditional Formatting is that determines
the
cell to be green. You should be able to use the same formula.
__------------------

Basically, your if statement will be something like this:

=IF(A10,1,0)

But we still need to know how the conditional formatting is set up before
an
accurate formula can be written.

Regards,
Paul

wrote in message
oups.com...
Hi, ALL:

Not sure why my previous post didn't show up. This is a repost.

Basically, if I shade a cell with color green (cell format\pattern), I
want to return a pure number of 1. Otherwise, return a value of 0. How
to achieve this by using a if statement?

Thanks,

Jorge



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
Had to repost it!!! Prashant Excel Discussion (Misc queries) 1 April 23rd 10 03:19 PM
Repost! Richard Excel Discussion (Misc queries) 1 September 26th 09 01:10 PM
Repost for Ron Jenny B. Excel Discussion (Misc queries) 1 May 21st 08 09:39 AM
Repost Tim Excel Programming 11 July 28th 05 08:51 PM
Please repost ans to this one Mark \(InWales\)[_15_] Excel Programming 3 November 18th 04 07:00 PM


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