Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
conditional subtotal function | Excel Worksheet Functions | |||
conditional subtotal counting | Excel Worksheet Functions | |||
Conditional SUBTOTAL | Excel Discussion (Misc queries) | |||
Is there a command like subtotal but with a conditional? | Excel Worksheet Functions | |||
Is it possible to do a conditional subtotal in Excel? | Excel Worksheet Functions |