#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 390
Default Conditional SUBTOTAL

Great advice is hard to beat. I get that in this group. Thank you!

I have a column of dates. Another column contains ordinary
integers, positive or negative. I want to find the lowest date
where the offset column is a negative number.

Example:

Col. F Col. G
------ ------
18-Apr-08 -12
14-Apr-08 12
7-Apr-08 -6
1-Apr-08 -24
24-Mar-08 -20
19-Mar-08 18


I'm looking for 24-Mar-08 -- the lowest date where Col. G is
negative. The dates might not always be sorted, in case that
matters. Can someone think of how? I'm stumped.

=dman=
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Conditional SUBTOTAL

Try this array* formula:

=MIN(IF(G1:G6<0,F1:F6,40000))

Adjust the ranges to suit your real data.

* As this is an array formula you must use CTRL-SHIFT-ENTER (CSE) to
commit it rather than the usual ENTER. If you do this correctly then
Excel will wrap curly braces { } around the formula when viewed in the
formula bar - do not type these yourself. Use CSE again if you edit
the formula.

Hope this helps.

Pete

On Jun 22, 12:42*am, Dallman Ross <dman@localhost. wrote:
Great advice is hard to beat. *I get that in this group. *Thank you!

I have a column of dates. *Another column contains ordinary
integers, positive or negative. *I want to find the lowest date
where the offset column is a negative number.

Example:

* * * Col. F * *Col. G
* * * ------ * *------
* * 18-Apr-08 * *-12
* * 14-Apr-08 * * 12
* * *7-Apr-08 * * -6
* * *1-Apr-08 * *-24
* * 24-Mar-08 * *-20
* * 19-Mar-08 * * 18

I'm looking for 24-Mar-08 -- the lowest date where Col. G is
negative. *The dates might not always be sorted, in case that
matters. *Can someone think of how? *I'm stumped.

=dman=


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 390
Default Conditional SUBTOTAL

Pete: excellent. Thank you!

=dman=

----------
In ,
Pete_UK spake thusly:

Try this array* formula:

=MIN(IF(G1:G6<0,F1:F6,40000))

Adjust the ranges to suit your real data.

* As this is an array formula you must use CTRL-SHIFT-ENTER (CSE) to
commit it rather than the usual ENTER. If you do this correctly then
Excel will wrap curly braces { } around the formula when viewed in the
formula bar - do not type these yourself. Use CSE again if you edit
the formula.

Hope this helps.

Pete

On Jun 22, 12:42*am, Dallman Ross <dman@localhost. wrote:
Great advice is hard to beat. *I get that in this group. *Thank you!

I have a column of dates. *Another column contains ordinary
integers, positive or negative. *I want to find the lowest date
where the offset column is a negative number.

Example:

* * * Col. F * *Col. G
* * * ------ * *------
* * 18-Apr-08 * *-12
* * 14-Apr-08 * * 12
* * *7-Apr-08 * * -6
* * *1-Apr-08 * *-24
* * 24-Mar-08 * *-20
* * 19-Mar-08 * * 18

I'm looking for 24-Mar-08 -- the lowest date where Col. G is
negative. *The dates might not always be sorted, in case that
matters. *Can someone think of how? *I'm stumped.

=dman=


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Conditional SUBTOTAL

You're welcome - thanks for feeding back.

Pete

On Jun 22, 2:30*am, Dallman Ross <dman@localhost. wrote:
Pete: excellent. *Thank you!

=dman=

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
conditional subtotal function dreamz Excel Worksheet Functions 3 August 17th 06 03:19 PM
conditional subtotal counting JessJ Excel Worksheet Functions 4 November 11th 05 02:59 PM
Conditional SUBTOTAL M.Siler Excel Discussion (Misc queries) 12 June 29th 05 01:11 AM
Is there a command like subtotal but with a conditional? Hiughs Excel Worksheet Functions 1 March 1st 05 07:24 PM
Is it possible to do a conditional subtotal in Excel? LTS_Bgobien Excel Worksheet Functions 6 November 16th 04 11:12 PM


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