Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default LOOKUP function between two dates in Excel 2007

I have two spreadsheets with insurance claims data. The first sheet
lists effective policy start and end dates and applicable deductable
amounts. The second sheet is a listing of actual claims dates (I
have
approximately 10,000 total).

I need to create a function column B of Sheet 2 in Excel similar to a
VLOOKUP that will pull the applicable Deducable_Amt to Sheet 2:Claims
Data (column B) from Sheet 1:Policy Data (column C) sheet based on if
the Claim_Date (column B) falls within the Start_Date and End_Date
(columns A & B) on Sheet 1.


For example, if the claim was filed on 10/01/2000 (column A sheet 2),
since the date falls between 09/01/2000 and 08/31/2001 (columns A & B
sheet 1), it will return $50,000 (column C, sheet 1) to the
Deductable_Amt (column B, sheet 2).


Sheet 1: Policy Data:
A B C


Start_Date End_Date Deductable_Amt
09/01/2000 08/31/2001 $50,000
09/01/2001 12/31/2002 $55,000
01/01/2003 11/30/2004 $60,000
12/01/2004 12/31/2006 $70,000


Sheet 2: Claims Data
A B
Claim_Date Deductable_Amt
10/01/2000 ???
12/15/2001 ???
07/01/2002 ???
09/17/2003 ???
11/30/2004 ???
02/21/2006 ???


Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default LOOKUP function between two dates in Excel 2007

As long as the dates don't overlap, try this in B2 of Sheet2:

=SUMPRODUCT((A2=Sheet1!A$2:A$10)*(A2<=Sheet1!B$2: B$10),Sheet1!C$2:C
$10)

Adjust the ranges to suit, then copy down.

Hope this helps.

Pete

On Sep 21, 3:55*pm, excelCPA wrote:
I have two spreadsheets with insurance claims data. *The first sheet
lists effective policy start and end dates and applicable deductable
amounts. *The second sheet is a listing of actual claims dates (I
have
approximately 10,000 total).

I need to create a function column B of Sheet 2 in Excel similar to a
VLOOKUP that will pull the applicable Deducable_Amt to Sheet 2:Claims
Data (column B) from Sheet 1:Policy Data (column C) sheet based on if
the Claim_Date (column B) falls within the Start_Date and End_Date
(columns A & B) on Sheet 1.

For example, if the claim was filed on 10/01/2000 (column A sheet 2),
since the date falls between 09/01/2000 and 08/31/2001 (columns A & B
sheet 1), it will return $50,000 (column C, sheet 1) to the
Deductable_Amt (column B, sheet 2).

Sheet 1: *Policy Data:
A * * * * * * * *B * * * * * * * *C

Start_Date *End_Date *Deductable_Amt
09/01/2000 08/31/2001 $50,000
09/01/2001 12/31/2002 $55,000
01/01/2003 11/30/2004 $60,000
12/01/2004 12/31/2006 $70,000

Sheet 2: Claims Data
A * * * * * * * * B
Claim_Date *Deductable_Amt
10/01/2000 * ???
12/15/2001 * ???
07/01/2002 * ???
09/17/2003 * ???
11/30/2004 * ???
02/21/2006 * ???

Any ideas?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,180
Default LOOKUP function between two dates in Excel 2007

Excel 2007, Tables
With Sumifs, Chart.
All ranges dynamic.
http://www.mediafire.com/file/d2mmymmnk2n/09_21_09.xlsm
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default LOOKUP function between two dates in Excel 2007

On Sep 21, 11:12*am, Pete_UK wrote:
As long as the dates don't overlap, try this in B2 of Sheet2:

=SUMPRODUCT((A2=Sheet1!A$2:A$10)*(A2<=Sheet1!B$2: B$10),Sheet1!C$2:C
$10)

Adjust the ranges to suit, then copy down.

Hope this helps.

Pete

On Sep 21, 3:55*pm, excelCPA wrote:



I have two spreadsheets with insurance claims data. *The first sheet
lists effective policy start and end dates and applicable deductable
amounts. *The second sheet is a listing of actual claims dates (I
have
approximately 10,000 total).


I need to create a function column B of Sheet 2 in Excel similar to a
VLOOKUP that will pull the applicable Deducable_Amt to Sheet 2:Claims
Data (column B) from Sheet 1:Policy Data (column C) sheet based on if
the Claim_Date (column B) falls within the Start_Date and End_Date
(columns A & B) on Sheet 1.


For example, if the claim was filed on 10/01/2000 (column A sheet 2),
since the date falls between 09/01/2000 and 08/31/2001 (columns A & B
sheet 1), it will return $50,000 (column C, sheet 1) to the
Deductable_Amt (column B, sheet 2).


Sheet 1: *Policy Data:
A * * * * * * * *B * * * * * * * *C


Start_Date *End_Date *Deductable_Amt
09/01/2000 08/31/2001 $50,000
09/01/2001 12/31/2002 $55,000
01/01/2003 11/30/2004 $60,000
12/01/2004 12/31/2006 $70,000


Sheet 2: Claims Data
A * * * * * * * * B
Claim_Date *Deductable_Amt
10/01/2000 * ???
12/15/2001 * ???
07/01/2002 * ???
09/17/2003 * ???
11/30/2004 * ???
02/21/2006 * ???


Any ideas?- Hide quoted text -


- Show quoted text -


This works for the amount, thanks. Now how do I get it to retun
text? For example, I Sheet 1 had a fourth column listing the
insurance carrier's name and I wanted that to pull to sheet 2?
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default LOOKUP function between two dates in Excel 2007

On Sep 21, 3:30*pm, Herbert Seidenberg
wrote:
Excel 2007, Tables
With Sumifs, Chart.
All ranges dynamic.http://www.mediafire.com/file/d2mmymmnk2n/09_21_09.xlsm


This is very cool. Do you know of anywhere I can get more info on the
functions used? For example where is Table2[Amt] defined? I can see
that Table2 range is defined, but do the brackets define the
individual amounts?


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default LOOKUP function between two dates in Excel 2007

As long as the dates are in sequence (as they are in your example),
then you can put this in C2 of Sheet2:

=VLOOKUP(A2,Sheet1!A$2:D$10,4)

Again, adjust the ranges to suit your data in sheet 1 and then copy
down.

Hope this helps.

Pete

On Sep 22, 5:41*pm, excelCPA wrote:

This works for the amount, thanks. *Now how do I get it to retun
text? *For example, I Sheet 1 had a fourth column listing the
insurance carrier's name and I wanted that to pull to sheet 2

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,180
Default LOOKUP function between two dates in Excel 2007

On Sep 22, 9:48*am, excelCPA wrote:
...do the brackets define the individual amounts?
Yes.
See Structured References in Excel 2007 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
Excel Data Validation/Lookup function does function correcty Kirkey Excel Worksheet Functions 2 May 25th 09 09:22 PM
function =IFERROR LOOKUP works in excel 2007 not in excel 2003 David Ryan Excel Worksheet Functions 4 April 15th 09 03:25 PM
Lookup Function for Excel 2007 Cornelius Excel Discussion (Misc queries) 2 March 6th 09 12:44 AM
Excel 2007 Lookup Trish Excel Worksheet Functions 4 July 23rd 08 06:29 AM
sort function for dates does not sort properly in Office 2007 Exc. Rosalie Excel Worksheet Functions 1 November 22nd 07 10:25 PM


All times are GMT +1. The time now is 02:32 PM.

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"