Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default performing different calculatons on whether yes or no is selected

Hi

I am trying to build a model where one calculation is performed if the cell
contains a "yes" but if it contains a "no" it does not perform the calculation

and i cant work out how to do it.

essentially i need to build a formula that has does this three times over.
What i am trying to achieve is for the user of the model to select three "yes
/ no" options from a list in the respective cells, then perform a calculation
on the "yes's" but not do the calculation on the "no's".

So.... if all "yes'" are selected three calcualtions are done and added to
the original figure and if 2 are selected then those 2 calculations are
performed and added to the original and of couse if just one then just one.

Hope this makes sense.

any help would be greatly appreciated
Gavin



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default performing different calculatons on whether yes or no is selected

One example which could be relevant here
Assuming DVs in A2:C2 down, where corresponding values in E2:G2 are to be
multiplied by 2 for any "yes" DV selections, then the total is calculated,
you could use this expression in H2, copied down:
=SUMPRODUCT(--(A2:C2="yes"),E2:G2*2)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Gavcoop123" wrote:
I am trying to build a model where one calculation is performed if the cell
contains a "yes" but if it contains a "no" it does not perform the calculation

and i cant work out how to do it.

essentially i need to build a formula that has does this three times over.
What i am trying to achieve is for the user of the model to select three "yes
/ no" options from a list in the respective cells, then perform a calculation
on the "yes's" but not do the calculation on the "no's".

So.... if all "yes'" are selected three calcualtions are done and added to
the original figure and if 2 are selected then those 2 calculations are
performed and added to the original and of couse if just one then just one.

Hope this makes sense.

any help would be greatly appreciated
Gavin

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
a more efficient way of performing this calculation? Dave F[_2_] Excel Discussion (Misc queries) 1 October 2nd 07 09:07 PM
TimeSheet calculatons Overnights DonElston Excel Worksheet Functions 4 June 5th 07 04:11 PM
performing conditional averages. vinnie123 Excel Worksheet Functions 1 January 10th 07 10:56 PM
Performing a convolution in a worksheet peter dmz Excel Worksheet Functions 2 August 18th 05 01:28 PM
performing least squares Darius Blaszijk Excel Discussion (Misc queries) 5 March 19th 05 07:25 PM


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