Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 81
Default Sumproduct - sort of

Can anybody help with a formula please
Data is in columns & I need to apply an inflation % to a value IF ColA=Yes &
add up the values of each
y/n bci end
n 701
n 727
y 766
y 801
y 931
inflate 5%
if(b2=y,c2*5%)+(if(b3=y,c3*5%)€¦etc

So from above (766*5%)+(801*5%)+(931*5%) = 124.90
The column can grow & the 5% would need to be referenced

Thanks in advance for any help
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default Sumproduct - sort of

HI

One way
=SUMPRODUCT((A1:A100="y")*B1:B100)*5%

--
Regards

Roger Govier


"Saintsman" wrote in message
...
Can anybody help with a formula please
Data is in columns & I need to apply an inflation % to a value IF
ColA=Yes &
add up the values of each
y/n bci end
n 701
n 727
y 766
y 801
y 931
inflate 5%
if(b2=y,c2*5%)+(if(b3=y,c3*5%).etc

So from above (766*5%)+(801*5%)+(931*5%) = 124.90
The column can grow & the 5% would need to be referenced

Thanks in advance for any help



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 81
Default Sumproduct - sort of

Thanks to you both for this very quick reply!
Rogers solution solved it for me - albeit I needed to add -- before
(A1:A100)...etc
Thanks very much

"Roger Govier" wrote:

HI

One way
=SUMPRODUCT((A1:A100="y")*B1:B100)*5%

--
Regards

Roger Govier


"Saintsman" wrote in message
...
Can anybody help with a formula please
Data is in columns & I need to apply an inflation % to a value IF
ColA=Yes &
add up the values of each
y/n bci end
n 701
n 727
y 766
y 801
y 931
inflate 5%
if(b2=y,c2*5%)+(if(b3=y,c3*5%).etc

So from above (766*5%)+(801*5%)+(931*5%) = 124.90
The column can grow & the 5% would need to be referenced

Thanks in advance for any help




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Sumproduct - sort of

I'd try it again without the --.

The multiplication should be sufficient.

Saintsman wrote:

Thanks to you both for this very quick reply!
Rogers solution solved it for me - albeit I needed to add -- before
(A1:A100)...etc
Thanks very much

"Roger Govier" wrote:

HI

One way
=SUMPRODUCT((A1:A100="y")*B1:B100)*5%

--
Regards

Roger Govier


"Saintsman" wrote in message
...
Can anybody help with a formula please
Data is in columns & I need to apply an inflation % to a value IF
ColA=Yes &
add up the values of each
y/n bci end
n 701
n 727
y 766
y 801
y 931
inflate 5%
if(b2=y,c2*5%)+(if(b3=y,c3*5%).etc

So from above (766*5%)+(801*5%)+(931*5%) = 124.90
The column can grow & the 5% would need to be referenced

Thanks in advance for any help





--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Sumproduct - sort of

Doesn't need it, as the * will multiply all of the TRUEs by the equivalent
values in B1:B100 and return numeric values.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Saintsman" wrote in message
...
Thanks to you both for this very quick reply!
Rogers solution solved it for me - albeit I needed to add -- before
(A1:A100)...etc
Thanks very much

"Roger Govier" wrote:

HI

One way
=SUMPRODUCT((A1:A100="y")*B1:B100)*5%

--
Regards

Roger Govier


"Saintsman" wrote in message
...
Can anybody help with a formula please
Data is in columns & I need to apply an inflation % to a value IF
ColA=Yes &
add up the values of each
y/n bci end
n 701
n 727
y 766
y 801
y 931
inflate 5%
if(b2=y,c2*5%)+(if(b3=y,c3*5%).etc

So from above (766*5%)+(801*5%)+(931*5%) = 124.90
The column can grow & the 5% would need to be referenced

Thanks in advance for any help








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Sumproduct - sort of

Try this:

=SUMIF(A2:A6,"y",B2)*5%


"Saintsman" wrote:

Can anybody help with a formula please
Data is in columns & I need to apply an inflation % to a value IF ColA=Yes &
add up the values of each
y/n bci end
n 701
n 727
y 766
y 801
y 931
inflate 5%
if(b2=y,c2*5%)+(if(b3=y,c3*5%)€¦etc

So from above (766*5%)+(801*5%)+(931*5%) = 124.90
The column can grow & the 5% would need to be referenced

Thanks in advance for any help

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
Ascending Sort formula, change to neg #: descending sort.. nastech Excel Discussion (Misc queries) 6 July 2nd 07 11:00 PM
sort function to sort for bell curve Kuby Excel Discussion (Misc queries) 4 December 16th 05 06:51 PM
Excel sort by Fill Color by custom list sort Dash4Cash Excel Discussion (Misc queries) 2 July 29th 05 10:45 PM
Excel Sort function should not sort the cell formatting! Lisa D.N.1 Excel Worksheet Functions 1 December 28th 04 08:37 PM
how can I hide sort ascending and sort descending options in the . vida Excel Discussion (Misc queries) 0 December 11th 04 12:31 AM


All times are GMT +1. The time now is 08:38 AM.

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"