PC Review


Reply
Thread Tools Rate Thread

Conditional SUBTOTAL

 
 
Dallman Ross
Guest
Posts: n/a
 
      22nd Jun 2008
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=
 
Reply With Quote
 
 
 
 
Pete_UK
Guest
Posts: n/a
 
      22nd Jun 2008
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=


 
Reply With Quote
 
Dallman Ross
Guest
Posts: n/a
 
      22nd Jun 2008
Pete: excellent. Thank you!

=dman=

----------
In <0c539b6b-88c3-4c8c-8cbc-(E-Mail Removed)>,
Pete_UK <(E-Mail Removed)> 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=

>

 
Reply With Quote
 
Pete_UK
Guest
Posts: n/a
 
      22nd Jun 2008
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional subtotal Sarah H. Microsoft Excel Misc 10 15th Dec 2009 11:29 PM
Conditional SUBTOTAL M.Siler Microsoft Excel Discussion 11 29th Jun 2005 01:11 AM
Conditional SUBTOTAL M.Siler Microsoft Excel Misc 11 29th Jun 2005 01:11 AM
Conditional Subtotal Al Microsoft Access Reports 2 14th Apr 2004 05:28 PM
Conditional Subtotal James Microsoft Excel Worksheet Functions 1 20th Sep 2003 02:41 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:00 PM.