Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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... |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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... |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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... |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
AUTOMATIC EXECUTION | Excel Discussion (Misc queries) | |||
function execution | Excel Worksheet Functions | |||
function execution | Excel Worksheet Functions | |||
Message Box Execution | Excel Programming | |||
Conditional macro execution | Excel Programming |