#1   Report Post  
LA
 
Posts: n/a
Default Lookup function

Hi all,
One of my input workbook consist of 30 worksheets with the 2 colums
referring date and production profile. Below is an example
Column A ColumnB (production profile)
Date1 0
Date2 0
Date3 1
Date4 2
Date5 7
Date6 5
If production profile changes from 0 to <0, then date coresponding to that
production would be "start date".
Now would you help me to set up a formular for a cell to address the start
date of each case.
FYI, I have created a so-called "flag" where startdate has value 1 while
non-startdate has value 0. However, i do not know what step would be.
Tks so much for your help.
LA

  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

Try:

=INDEX(A1:A6,1+MATCH(1,(B1:B6=0)*(B2:B7<0),0))

Array-entered, meaning press ctrl + shift + enter.

HTH
Jason
Atlanta, GA


"LA" wrote:

Hi all,
One of my input workbook consist of 30 worksheets with the 2 colums
referring date and production profile. Below is an example
Column A ColumnB (production profile)
Date1 0
Date2 0
Date3 1
Date4 2
Date5 7
Date6 5
If production profile changes from 0 to <0, then date coresponding to that
production would be "start date".
Now would you help me to set up a formular for a cell to address the start
date of each case.
FYI, I have created a so-called "flag" where startdate has value 1 while
non-startdate has value 0. However, i do not know what step would be.
Tks so much for your help.
LA

  #3   Report Post  
LA
 
Posts: n/a
Default

Great!!! Your idea really helps. Tks so much.
BTW, could you pls explain or provide me with any source explaining the
philosophy of the array calculation in this case. This formular just works if
I use "Ctrl+shift+enter" as suggested.

"Jason Morin" wrote:

Try:

=INDEX(A1:A6,1+MATCH(1,(B1:B6=0)*(B2:B7<0),0))

Array-entered, meaning press ctrl + shift + enter.

HTH
Jason
Atlanta, GA


"LA" wrote:

Hi all,
One of my input workbook consist of 30 worksheets with the 2 colums
referring date and production profile. Below is an example
Column A ColumnB (production profile)
Date1 0
Date2 0
Date3 1
Date4 2
Date5 7
Date6 5
If production profile changes from 0 to <0, then date coresponding to that
production would be "start date".
Now would you help me to set up a formular for a cell to address the start
date of each case.
FYI, I have created a so-called "flag" where startdate has value 1 while
non-startdate has value 0. However, i do not know what step would be.
Tks so much for your help.
LA

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
How can i use > in lookup function? AZHawkPilot Excel Discussion (Misc queries) 3 October 25th 09 01:32 AM
Lookup Function - Specific Values Steve Elliott Excel Worksheet Functions 6 April 9th 05 07:15 PM
Lookup Function Error Jacinthe Excel Worksheet Functions 2 March 10th 05 07:37 AM
Lookup Function Problem seve Excel Discussion (Misc queries) 9 February 28th 05 02:46 AM
Lookup function w/Text and Year Josh O. Excel Worksheet Functions 1 February 12th 05 11:27 PM


All times are GMT +1. The time now is 01:20 PM.

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"