Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
cheski
 
Posts: n/a
Default Using functions to calculate multiple scores according to their level of difficulty

Dear all,

I would like to do the following:

Let me first show you my table

A B C
(1) 15 10 9
(2) e d e

Row (1) displays scores
Row (2) displays level of difficulty (e=easy, d=difficult)

I would like to make a function that, according to the difficulty
either multiplies the score *1 for easy and *2 for difficult level of
difficulty.

The result would be: 1*15 + 2*10 + 1*9 = 15 + 20 + 9 = 44. This by
itself would not be too hard with an IF-function. However, just
imagine a row that consists of 20 scores and how big the IF function
would be!

Anyone any idea as to how to do it in a faster, more efficient way?

Many thanks in advance!

Kind regards,
Cheski Frank, Switzerland
  #2   Report Post  
GaryDK
 
Posts: n/a
Default

Hi,

If you enter this as an array formula (see help if you don't know about
array formulas), it general syntax should do what you need -

=SUM(IF(A2:C2="e",A1:C1,A1:C1*10))

Gary

  #3   Report Post  
GaryDK
 
Posts: n/a
Default

Oops, that should be -

=SUM(IF(A2:C2="e",A1:C1,A1:C1*2))

Gary

  #4   Report Post  
Arvi Laanemets
 
Posts: n/a
Default

Hi

Or
=SUM((A1:C1)*(1+(A2:C2="d")))
(entered as an array formula too)


Arvi Laanemets


"GaryDK" wrote in message
ups.com...
Oops, that should be -

=SUM(IF(A2:C2="e",A1:C1,A1:C1*2))

Gary



  #7   Report Post  
JE McGimpsey
 
Posts: n/a
Default

Simple:

=3*SUM(A1:C1)+4*SUMIF(A2:C2,"d",A1:C1)

or

=SUMPRODUCT(A1:C1,(3+4*(A2:C2="d")))

In article ,
snn wrote:

What if e=3 and d=7

"JE McGimpsey" wrote:

one way:

=SUM(A1:C1)+SUMIF(A2:C2,"d",A1:C1)

another:

=SUMPRODUCT(A1:C1,(1+(A2:C2="d")))

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
Multiple Functions Kevin Excel Worksheet Functions 4 March 14th 05 01:51 AM
Multiple functions in one cell Kevin Excel Worksheet Functions 2 March 13th 05 03:21 AM
how do I use multiple nested functions? TeeJay Excel Worksheet Functions 3 February 20th 05 05:09 PM
Multiple IF functions sonicj Excel Worksheet Functions 3 February 2nd 05 03:31 AM
calculate percent from multiple criteria Jan Excel Worksheet Functions 0 November 10th 04 06:09 PM


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