#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default total point

Sir,
How to count total point for cell A1 to J1:
A B C D E F G I J
1 4 1 4 3 2 1 1 2 3

if, 1=0 point, 1=5 point, 2=10 point, 4=15 point
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,203
Default total point

Are you sure you got the point system correct, you have 2 values for 1 (0 and
5) and no value for 10, so I am going to presume you meant:
1=0, 2=5, 3=10 and 4=15
If that is correct, then this formula will give you the answer (60)
=(SUMIF(A1:I1,"1",A1:I1)-COUNTIF(A1:I1,"1"))*5
That formula simply ignores 1s completely; it gets the total of all values
greater than 1 and effectively subtracts 1 from each of them and multiplies
the result by 5.
so
4-1=3 and 3*5 = 15
1 ignored
4-1=3 and 3*5 = 15
3-1=2 and 2*5 = 10
2-1=1 and 1*5 = 5
1 ignored
1 ignored
2-1=1 and 1*5 = 5
3-1=2 and 2*5 = 10
and finally 15+15+10+5+5+10 = 60


"nordiyu" wrote:

Sir,
How to count total point for cell A1 to J1:
A B C D E F G I J
1 4 1 4 3 2 1 1 2 3

if, 1=0 point, 1=5 point, 2=10 point, 4=15 point

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,203
Default total point

=(SUM(A1:I1)-COUNT(A1:I1))*5
will also give the same result of 60 and it's a simpler formula, so faster
to execute.

"nordiyu" wrote:

Sir,
How to count total point for cell A1 to J1:
A B C D E F G I J
1 4 1 4 3 2 1 1 2 3

if, 1=0 point, 1=5 point, 2=10 point, 4=15 point

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default total point

Here is another formula for you to try...

=SUMPRODUCT((A1:J1-1)*5)

--
Rick (MVP - Excel)



"nordiyu" wrote in message
...
Sir,
How to count total point for cell A1 to J1:
A B C D E F G I J
1 4 1 4 3 2 1 1 2 3

if, 1=0 point, 1=5 point, 2=10 point, 4=15 point


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default total point

Just pointing out that you wrote the wrong range in your formulas.... you
wrote A1:I1 instead of A1:J1.

--
Rick (MVP - Excel)



"JLatham" wrote in message
...
=(SUM(A1:I1)-COUNT(A1:I1))*5
will also give the same result of 60 and it's a simpler formula, so faster
to execute.

"nordiyu" wrote:

Sir,
How to count total point for cell A1 to J1:
A B C D E F G I J
1 4 1 4 3 2 1 1 2 3

if, 1=0 point, 1=5 point, 2=10 point, 4=15 point




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,203
Default total point

Thanks. I missed that. I didn't think of using sumproduct in the way you
did, and had even tried an array first, but that was a total bust.
Looks like it comes down to which ever formula he prefers or feels more
comfortable with.

"Rick Rothstein" wrote:

Just pointing out that you wrote the wrong range in your formulas.... you
wrote A1:I1 instead of A1:J1.

--
Rick (MVP - Excel)



"JLatham" wrote in message
...
=(SUM(A1:I1)-COUNT(A1:I1))*5
will also give the same result of 60 and it's a simpler formula, so faster
to execute.

"nordiyu" wrote:

Sir,
How to count total point for cell A1 to J1:
A B C D E F G I J
1 4 1 4 3 2 1 1 2 3

if, 1=0 point, 1=5 point, 2=10 point, 4=15 point


.

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
What does Excel do when you go over the limit for total data point Carl Charts and Charting in Excel 3 April 8th 09 03:16 PM
Data point on line is not over the point/tick in X axis... TomCat Charts and Charting in Excel 2 September 6th 07 01:36 PM
X Y Scatter With Point name on each point ? Raj Charts and Charting in Excel 3 July 27th 07 08:47 PM
Excel 2002 : Any single button to get sub total and grand total ? Mr. Low Excel Discussion (Misc queries) 2 May 22nd 07 08:46 AM
I need more general XY point to point plotting than XY scatter in spazminator Charts and Charting in Excel 12 December 19th 05 05:00 PM


All times are GMT +1. The time now is 12:49 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"