Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default help on data lookup

cpt medicare aetna
70417 143.00 145.00
70418 200.00 250.00
70419 300.00 350.00

I need a formula that will give the result of 200.00 by defining cpt =70418
for medicare or 70419 & aetna gives me 350.00 as the result
--
szy
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default help on data lookup

Suppose you use D1 for the column heading (medicare) and E1 for the
value of cpt (70418). Put this formula in F1:

=INDEX($B$2:$C$4,MATCH(E1,$A$2:$A$4,0),MATCH(D1,$B $1:$C$1,0))

Adjust your ranges to suit your real table. Change the values in D1
and E1 for other returns.

Hope this helps.

Pete

On Jan 28, 6:38*pm, l szym wrote:
cpt * * * * * *medicare * * * aetna
70417 * * * *143.00 * * * * * 145.00
70418 * * * *200.00 * * * * * 250.00
70419 * * * *300.00 * * * * * 350.00

I need a formula that will give the result of 200.00 by defining *cpt =70418
for medicare *or 70419 & aetna gives me 350.00 as the result
--
szy


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default help on data lookup

Hi,

try this

=INDEX(A1:C4,MATCH(70418,A1:A4,0),MATCH("aetna",A1 :C1,0))

In practice i'd use cell references to hold the lookup values

Mike

"l szym" wrote:

cpt medicare aetna
70417 143.00 145.00
70418 200.00 250.00
70419 300.00 350.00

I need a formula that will give the result of 200.00 by defining cpt =70418
for medicare or 70419 & aetna gives me 350.00 as the result
--
szy

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default help on data lookup

Hi,

Assume your table starts in A1 with titles on the first row and you enter
70418 in E1 and medi in F1

=SUMPRODUCT((A2:A4=E1)*(B1:C1=F1)*B2:C4)

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"l szym" wrote:

cpt medicare aetna
70417 143.00 145.00
70418 200.00 250.00
70419 300.00 350.00

I need a formula that will give the result of 200.00 by defining cpt =70418
for medicare or 70419 & aetna gives me 350.00 as the result
--
szy

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default help on data lookup

THANKS, you just saved me a ton of time. this worked great!!
--
szy


"Pete_UK" wrote:

Suppose you use D1 for the column heading (medicare) and E1 for the
value of cpt (70418). Put this formula in F1:

=INDEX($B$2:$C$4,MATCH(E1,$A$2:$A$4,0),MATCH(D1,$B $1:$C$1,0))

Adjust your ranges to suit your real table. Change the values in D1
and E1 for other returns.

Hope this helps.

Pete

On Jan 28, 6:38 pm, l szym wrote:
cpt medicare aetna
70417 143.00 145.00
70418 200.00 250.00
70419 300.00 350.00

I need a formula that will give the result of 200.00 by defining cpt =70418
for medicare or 70419 & aetna gives me 350.00 as the result
--
szy





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default help on data lookup

Glad to hear it - thanks for feeding back.

Pete

On Jan 28, 8:46*pm, l szym wrote:
THANKS, you just saved me a ton of time. *this worked great!!
--
szy


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
Lookup data based on data comparison Dan Excel Worksheet Functions 7 November 6th 07 10:52 PM
lookup data Jaci Excel Worksheet Functions 1 September 26th 06 05:44 PM
how do I lookup data based on two columns of data bttreadwell Excel Worksheet Functions 2 November 19th 05 03:54 AM
Another way to lookup data David Vollmer Excel Worksheet Functions 1 September 23rd 05 05:16 AM
The match and lookup functions can find literal data but not the same data referenced from a cell Jeff Melvaine Excel Discussion (Misc queries) 3 April 30th 05 01:29 PM


All times are GMT +1. The time now is 11:08 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"