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: 88
Default Macros for calculating the range

In D1 enter =COUNTIF(A1:C1,"Yes") and copy down to row n.

Hope this helps
Rowan

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
Macros for calculating the range raja Excel Programming 1 September 22nd 05 07:40 AM
calculating in a changing range gkaste Excel Discussion (Misc queries) 5 August 8th 05 09:49 PM
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:58 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"