Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 115
Default SUMPRODUCT - enhanced formula

Hi all,

I use the following formula to look into column E, pick out the cells with
'UK' in it, and then return the corresponding values in column I as a total.

=SUMPRODUCT((E3:E41="UK")*I3:I41)

This formula would work better if I could add a feature that looked into a
range of cells that had only dates in them, and then chose to return the
values that come from the column with the latest date.

e.g. Cells G2:J2 are dates.
Cells E3: E41 has abbreviations, one of which may be 'UK'
Cells G3:J41 have values.

So, I would want to look into G2:J2 to get the latest date, (say J2 had
latest date) then pick out the values from the column with the latest date
i.e. J3:J41 that also have a corresponding 'UK' abbreviation in E3:E41.

I was thinking of using the max or large feature but not sure how to
incorporate it all together.

Also, is it possible to have a formula that does all of the above, but
instead of using the latest date, it uses the second latest date?

Thanks for any help.


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 115
Default SUMPRODUCT - enhanced formula

Its ok, got it sorted thanks!

"carol" wrote:

Hi all,

I use the following formula to look into column E, pick out the cells with
'UK' in it, and then return the corresponding values in column I as a total.

=SUMPRODUCT((E3:E41="UK")*I3:I41)

This formula would work better if I could add a feature that looked into a
range of cells that had only dates in them, and then chose to return the
values that come from the column with the latest date.

e.g. Cells G2:J2 are dates.
Cells E3: E41 has abbreviations, one of which may be 'UK'
Cells G3:J41 have values.

So, I would want to look into G2:J2 to get the latest date, (say J2 had
latest date) then pick out the values from the column with the latest date
i.e. J3:J41 that also have a corresponding 'UK' abbreviation in E3:E41.

I was thinking of using the max or large feature but not sure how to
incorporate it all together.

Also, is it possible to have a formula that does all of the above, but
instead of using the latest date, it uses the second latest date?

Thanks 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
J-Walk Enhanced Data Form Leanne Excel Discussion (Misc queries) 9 April 25th 08 12:15 AM
Enhanced lottery question Brad Excel Discussion (Misc queries) 5 April 18th 08 08:21 PM
Pasting from xl into word as an enhanced metafile LB[_2_] Excel Discussion (Misc queries) 0 April 23rd 07 07:12 PM
enhanced conditional formatting Stuart Excel Discussion (Misc queries) 13 November 13th 05 08:20 PM
Statistical graphing - enhanced box&whiskers ACC Charts and Charting in Excel 1 October 25th 05 12:19 AM


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