Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
tifosi3
 
Posts: n/a
Default Sum product if value present

I have a worksheet that totals dollar amounts from another worksheet based on
certain criteria. The current formula is: =SUMPRODUCT(--('JULY
2005'!$D$5:$D$533="KB"),--ISNUMBER('JULY 2005'!$L$5:$L$533),('JULY
2005'!$B$5:$B$533))

I have now want to be able to in certain instances be able to enter another
value in column, and if I do I want it to use the column C value not the
column B, and if there is no value in C use the coulumn B value.

I know I should be able to figure this out, but for some reason I am drawing
a complete blank. Thanks in advance for any help!!

Regards,
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Is this what you want?

=SUMPRODUCT(--('JULY 2005'!$D$5:$D$53="KB"),--ISNUMBER('JULY
2005'!$L$5:$L$53),(IF(ISNUMBER('JULY 2005'!C5:C53),'JULY 2005'!C5:C53,'JULY
2005'!$B$5:$B$53)))

This is an array formula, so commit with Ctrl-Shift-Enter

--

HTH

RP
(remove nothere from the email address if mailing direct)


"tifosi3" wrote in message
...
I have a worksheet that totals dollar amounts from another worksheet based

on
certain criteria. The current formula is: =SUMPRODUCT(--('JULY
2005'!$D$5:$D$533="KB"),--ISNUMBER('JULY 2005'!$L$5:$L$533),('JULY
2005'!$B$5:$B$533))

I have now want to be able to in certain instances be able to enter

another
value in column, and if I do I want it to use the column C value not the
column B, and if there is no value in C use the coulumn B value.

I know I should be able to figure this out, but for some reason I am

drawing
a complete blank. Thanks in advance for any help!!

Regards,



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
Counting Rows/Columns for Copying Formulas SamDev Excel Discussion (Misc queries) 0 June 24th 05 04:13 AM
Percentages Darryl Charts and Charting in Excel 2 May 21st 05 04:31 PM
How to set a formula to count the product appear how manytime AMY Excel Worksheet Functions 3 March 21st 05 09:49 AM
Which Function(s) do I use? LB Excel Worksheet Functions 3 January 6th 05 02:53 AM
Which function(s)? LB Excel Worksheet Functions 3 January 5th 05 06:19 PM


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