PC Review


Reply
Thread Tools Rate Thread

Column Setup as True/False if Cell Reference Has Name In it...

 
 
cwangosu
Guest
Posts: n/a
 
      20th Sep 2004
This should be a relatively easy question.

I have a column (B) that I want to display these values based off
column (A):

1) If Column A is blank, Column B is blank.
2) If Column A has something, it should be set at 0.
3) If Column A has something, it may be changed to 1.

1 and 2 are what I'm worried about.

This is essentially used to give a percent complete. There will be
names in Column A and if it's 0, it means they didn't complete their
assignment. If there is no name in Column A, then the field should be
blank and not affect what the AVERAGE function used at the bottom of
Column B to determine the percent complete.
 
Reply With Quote
 
 
 
 
Ragdyer
Guest
Posts: n/a
 
      20th Sep 2004
If I understand what you're saying, you will place a "1" in column B when
you receive the completed assignment.

*Until* you do so, you just want column B to display zero if the
corresponding row in column A contains a name, and display "nothing" if
column A is empty.

=IF(A1="","",0)
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"cwangosu" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> This should be a relatively easy question.
>
> I have a column (B) that I want to display these values based off
> column (A):
>
> 1) If Column A is blank, Column B is blank.
> 2) If Column A has something, it should be set at 0.
> 3) If Column A has something, it may be changed to 1.
>
> 1 and 2 are what I'm worried about.
>
> This is essentially used to give a percent complete. There will be
> names in Column A and if it's 0, it means they didn't complete their
> assignment. If there is no name in Column A, then the field should be
> blank and not affect what the AVERAGE function used at the bottom of
> Column B to determine the percent complete.


 
Reply With Quote
 
Max
Guest
Posts: n/a
 
      20th Sep 2004
Not really sure, but here's one play at it ..

Assume you have in col A (Names) in A1:A4
data from row2 down, i.e.:

Names
ABC
DEF
XYZ

Put in B2: =IF(ISBLANK(A2),"",IF(A2=0,0,1))
Copy down

Put in say B5: =AVERAGE(B2:B4)

Put in B6: =AVERAGE(IF(B2:B4<>0,B2:B4))
Array-enter the formula,
i.e. press CTRL+SHIFT+ENTER
(instead of just pressing ENTER)

B5 and B6 will both return "1"

Now clear cell A2 ("ABC") to make it blank
(use Delete key)
(this simulates "No name in col A")

B5 and B6 both return "1"

Now type a zero in A2, press ENTER
(this simulates "did not complete assignment in col A")

B5 returns : "0.66667" (2 divided by 3)
B6 returns : "1" (2 divided by 2)

The array AVERAGE() formula in B6 will
disregard zero values within the range
while the simple AVERAGE() in B5 will not

--
Rgds
Max
xl 97
---
Please respond in thread
xdemechanik <at>yahoo<dot>com
----
"cwangosu" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> This should be a relatively easy question.
>
> I have a column (B) that I want to display these values based off
> column (A):
>
> 1) If Column A is blank, Column B is blank.
> 2) If Column A has something, it should be set at 0.
> 3) If Column A has something, it may be changed to 1.
>
> 1 and 2 are what I'm worried about.
>
> This is essentially used to give a percent complete. There will be
> names in Column A and if it's 0, it means they didn't complete their
> assignment. If there is no name in Column A, then the field should be
> blank and not affect what the AVERAGE function used at the bottom of
> Column B to determine the percent complete.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the best way to toggle between true and false in Excel? Hiall, My excel work involves a lot of toggling between true and false (booleantypes) ... and it's very repetitive... Is there a way to select a bunch ofcells, and press a key short-cu LunaMoon Microsoft Excel Discussion 9 29th Jul 2008 12:28 AM
What's the best way to toggle between true and false in Excel? Hiall, My excel work involves a lot of toggling between true and false (booleantypes) ... and it's very repetitive... Is there a way to select a bunch ofcells, and press a key short-cu LunaMoon Microsoft Excel Misc 9 29th Jul 2008 12:28 AM
Two subjects: Column sort and True/False in cell dilynn17 Microsoft Excel Worksheet Functions 3 3rd May 2008 02:45 PM
True or False if already in column Tim Microsoft Excel Discussion 4 19th Oct 2005 01:40 AM
Datagrid -True or False column Agnes Microsoft VB .NET 2 2nd Nov 2004 04:26 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:44 AM.