Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Conditional execution

i have 100*100 cells..
which look like
A B C D
x yes no yes
y yes yes no
z no no no

if (yes) then c=1 and it should be added to column E
for all rows...
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 126
Default Conditional execution

if (yes) then c=1 and it should be added to column E
for all rows...

If WHAT = "yes"

and WHAT should be added to column E?

and when you say "c=1", do you mean that you want to
change the value of the "yes" or "no" in column c of that row to a "1"?

You need to be much more specific in phrasing your question.

"raja" wrote:

i have 100*100 cells..
which look like
A B C D
x yes no yes
y yes yes no
z no no no

if (yes) then c=1 and it should be added to column E
for all rows...

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Conditional execution

i want to substitue 1 for "yes" and 0 for "no"

then i want to add up all the 1's to a variable and display in the column E

"yes" means the values in the cells


"cush" wrote:

if (yes) then c=1 and it should be added to column E

for all rows...

If WHAT = "yes"

and WHAT should be added to column E?

and when you say "c=1", do you mean that you want to
change the value of the "yes" or "no" in column c of that row to a "1"?

You need to be much more specific in phrasing your question.

"raja" wrote:

i have 100*100 cells..
which look like
A B C D
x yes no yes
y yes yes no
z no no no

if (yes) then c=1 and it should be added to column E
for all rows...

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 279
Default Conditional execution

It's easier than that

=CountIf("YES", "Your range here")
this function will return the number of "Yes" cells in your range


"raja" wrote:

i want to substitue 1 for "yes" and 0 for "no"

then i want to add up all the 1's to a variable and display in the column E

"yes" means the values in the cells


"cush" wrote:

if (yes) then c=1 and it should be added to column E

for all rows...

If WHAT = "yes"

and WHAT should be added to column E?

and when you say "c=1", do you mean that you want to
change the value of the "yes" or "no" in column c of that row to a "1"?

You need to be much more specific in phrasing your question.

"raja" wrote:

i have 100*100 cells..
which look like
A B C D
x yes no yes
y yes yes no
z no no no

if (yes) then c=1 and it should be added to column E
for all rows...

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Conditional execution

Oopsie...

=CountIf("Your range here", "yes")



Vacation's Over wrote:

It's easier than that

=CountIf("YES", "Your range here")
this function will return the number of "Yes" cells in your range

"raja" wrote:

i want to substitue 1 for "yes" and 0 for "no"

then i want to add up all the 1's to a variable and display in the column E

"yes" means the values in the cells


"cush" wrote:

if (yes) then c=1 and it should be added to column E
for all rows...

If WHAT = "yes"

and WHAT should be added to column E?

and when you say "c=1", do you mean that you want to
change the value of the "yes" or "no" in column c of that row to a "1"?

You need to be much more specific in phrasing your question.

"raja" wrote:

i have 100*100 cells..
which look like
A B C D
x yes no yes
y yes yes no
z no no no

if (yes) then c=1 and it should be added to column E
for all rows...


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 279
Default Conditional execution

Thanks Dave -

"Dave Peterson" wrote:

Oopsie...

=CountIf("Your range here", "yes")



Vacation's Over wrote:

It's easier than that

=CountIf("YES", "Your range here")
this function will return the number of "Yes" cells in your range

"raja" wrote:

i want to substitue 1 for "yes" and 0 for "no"

then i want to add up all the 1's to a variable and display in the column E

"yes" means the values in the cells


"cush" wrote:

if (yes) then c=1 and it should be added to column E
for all rows...

If WHAT = "yes"

and WHAT should be added to column E?

and when you say "c=1", do you mean that you want to
change the value of the "yes" or "no" in column c of that row to a "1"?

You need to be much more specific in phrasing your question.

"raja" wrote:

i have 100*100 cells..
which look like
A B C D
x yes no yes
y yes yes no
z no no no

if (yes) then c=1 and it should be added to column E
for all rows...


--

Dave Peterson

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Conditional execution

i want to substitue 1 for "yes" and 0 for "no"

then i want to add up all the 1's to a variable and display in the column E

"cush" wrote:

if (yes) then c=1 and it should be added to column E

for all rows...

If WHAT = "yes"

and WHAT should be added to column E?

and when you say "c=1", do you mean that you want to
change the value of the "yes" or "no" in column c of that row to a "1"?

You need to be much more specific in phrasing your question.

"raja" wrote:

i have 100*100 cells..
which look like
A B C D
x yes no yes
y yes yes no
z no no no

if (yes) then c=1 and it should be added to column E
for all rows...

  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 126
Default Conditional execution

Try this:

In cell E2 type: =Countif($B2:$D2,"Yes")

Then copy this down col E as far as needed.

"raja" wrote:

i want to substitue 1 for "yes" and 0 for "no"

then i want to add up all the 1's to a variable and display in the column E

"cush" wrote:

if (yes) then c=1 and it should be added to column E

for all rows...

If WHAT = "yes"

and WHAT should be added to column E?

and when you say "c=1", do you mean that you want to
change the value of the "yes" or "no" in column c of that row to a "1"?

You need to be much more specific in phrasing your question.

"raja" wrote:

i have 100*100 cells..
which look like
A B C D
x yes no yes
y yes yes no
z no no no

if (yes) then c=1 and it should be added to column E
for all rows...

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
AUTOMATIC EXECUTION VB_User Excel Discussion (Misc queries) 5 December 28th 07 11:48 PM
function execution matty_g Excel Worksheet Functions 11 June 9th 05 10:13 PM
function execution matty_g Excel Worksheet Functions 2 June 9th 05 12:05 AM
Message Box Execution Myrna Rodriguez Excel Programming 1 June 24th 04 06:34 PM
Conditional macro execution Willis Marsh Excel Programming 4 April 28th 04 05:02 AM


All times are GMT +1. The time now is 06:49 PM.

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"