Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Macros for calculating the range

hi all,

A B C D
Yes Yes Yes 3
No No No 0
Yes No NO 1

it should calculate individually for each row..

it should count number of yes from a1 to c1 and store it in d1
and it should count number of yes from a2 to c2 and store it in d2
and a3 to c3 in d3

likewise for n rows

Pls refer the above example

thank u

in macros pls
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 747
Default Macros for calculating the range

Forget the macro. Enter the following formula in cell D1 and drag it down n
rows:

=COUNTIF(A1:C1, "yes")

Regards,
Greg

"raja" wrote:

hi all,

A B C D
Yes Yes Yes 3
No No No 0
Yes No NO 1

it should calculate individually for each row..

it should count number of yes from a1 to c1 and store it in d1
and it should count number of yes from a2 to c2 and store it in d2
and a3 to c3 in d3

likewise for n rows

Pls refer the above example

thank u

in macros pls

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
Calculating a Data Range Andy Excel Discussion (Misc queries) 2 September 19th 07 05:58 AM
calculating return in a range kman Excel Worksheet Functions 5 December 27th 05 12:49 AM
Calculating Percentages in a Range Allen7575 Excel Worksheet Functions 3 April 11th 05 09:31 PM
Calculating a range in VB Excel XP Haitch[_3_] Excel Programming 1 December 17th 03 12:41 PM
macros for calculating a new average after inserting a new row debbz82 Excel Programming 2 November 20th 03 03:36 PM


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