Hi Karen,
When you gave your example, the columns ended up all over the place. I
THINK I understand your format.
To explain the formula, let's start with a new workbook.
Rename 'Sheet 1' as 'AR AGING'
Rename 'Sheet 2' as 'RapiData'
Go to the 'RapiData' worksheet.
Put the following in the indicated cells...
A1 - Payor Code:
B1 - Name
C1 - Date of Service
D1 - Claim Amount
B2 - AD HOC AETNA - EL PASO
C2 - 10/20/2006
D2 - $20.00
B3 - BLUE CROSS
C3 - 09/18/2006 <== I changed this to put within 60 days
D3 - $30.00
B4 - MEDICAID
C4 - 06/01/2006
D4 - $10.00
B5 - AD HOC AETNA - EL PASO
C5 - 01/20/2006
D5 - 50.00
Go to the 'AR AGING' worksheet.
Put the following in the indicated cells...
A1 - Payor Code:
C1 - 10/26/2006
D1 - 09/26/2006
E1 - 09/25/2006
B2 - Name
C2 - 0-30
E2 - 31-60
B3 - AD HOC AETNA - EL PASO
B4 - BLUE CROSS
B5 - MEDICAID
In Cell C3, put the following formula (all one line).
=SUM((RapiData!$B$2:$B$5='AR Aging'!$B3)*(RapiData!$C$2:$C$5<='AR
Aging'!C$1)*(RapiData!$C$2:$C$5>='AR Aging'!D$1)*(RapiData!$D$2:$D$5))
-----------------------
REMEMBER to hit CTRL-SHIFT-ENTER instead of just ENTER so that you create an
array.
If you do it correctly, the formula will have '{' and '}' around it.
ie:
{=SUM((RapiData!$B$2:$B$5='AR Aging'!$B3)*(RapiData!$C$2:$C$5<='AR
Aging'!C$1)*(RapiData!$C$2:$C$5>='AR Aging'!D$1)*(RapiData!$D$2:$D$5))}
-----------------------
BE CAREFUL WITH THE ABSOLUTES '$'
-----------------------
Copy Cell C3 down to C4 and C5.
Copy Cells C3:C5 to E3:E5.
C3 will correctly show $20.00 is 0-30 days old for AD HOC AETNA - EL PASO.
C4 will correctly show $ 0.00 is 0-30 days old for BLUE CROSS.
C5 will correctly show $ 0.00 is 0-30 days old for MEDICAID.
E3 will correctly show $ 0.00 is 31-60 days old for AD HOC AETNA - EL PASO.
E4 will correctly show $30.00 is 31-60 days old for BLUE CROSS.
E5 will correctly show $ 0.00 is 31-60 days old for MEDICAID.
Hope this clears things up.
--
Gary Brown
(e-mail address removed)
If this post was helpful to you, please select ''YES'' at the bottom of the
post.