Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default can I use vlookup to add multiple values

I'm trying to sort through a long list of medical CPT codes with
corresponding payments. Is it possible to use the vlookup or other function
to total all the values that correspond to a certain CPT code? For examle -
I have the following list:

CPT Amt
10021 223.76
10021 240
10021 215
10021 96.74
10061 57.62
10061 15.37
11400 6
11401 49.39
11401 105.71
11403 63.5
11403 116.85

I would like to total all the amounts for the specific CPT code:

CPT Amt
10021
10021
10021
10021 775.5
10061
10061 72.99
11400 6
11401
11401 155.1
11403
11403 180.35

The list has a bout 8000 codes so I'm really looking for something that I
can just scroll down.
Thanks!





  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 703
Default can I use vlookup to add multiple values

Hi

Use a Pivot Table - Select all your data, goto Data Pivot Table, and
follow the wizard, and finally drag CPT to the row field and Amt into
the data field.

Hopes this helps.
....
Per

On 2 Mar., 23:24, Carl Schreiner <Carl
wrote:
I'm trying to sort through a long list of medical CPT codes with
corresponding payments. *Is it possible to use the vlookup or other function
to total all the values that correspond to a certain CPT code? *For examle -
I have the following list:

CPT * * Amt
10021 * 223.76
10021 * 240
10021 * 215
10021 * 96.74
10061 * 57.62
10061 * 15.37
11400 * 6
11401 * 49.39
11401 * 105.71
11403 * 63.5
11403 * 116.85

I would like to total all the amounts for the specific CPT code:

CPT * * Amt
10021 *
10021 *
10021 *
10021 * 775.5
10061 *
10061 * 72.99
11400 * 6
11401 *
11401 * 155.1
11403 *
11403 * 180.35

The list has a bout 8000 codes so I'm really looking for something that I
can just scroll down.
Thanks!


  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default can I use vlookup to add multiple values

A pivot is ideal. In Layout, drag n drop "CPT" into ROW, "Amt" into DATA (set
to Sum), click to Finish off the wizard. And that's it. The pivot returns the
list of unique CPTs and their corresponding Sum of Amts next to it. Exactly
what you're after, in a matter of seconds (yes, even for 8,000 records).

With the data "as-is", via formulas, think SUMIF ...
In C2, copied down: =SUMIF(A:A,A2,B:B)
Any joy? hit YES below
--
Max
Singapore
---
"Carl Schreiner" wrote:
I'm trying to sort through a long list of medical CPT codes with
corresponding payments. Is it possible to use the vlookup or other function
to total all the values that correspond to a certain CPT code? For examle -
I have the following list:

CPT Amt
10021 223.76
10021 240
10021 215
10021 96.74
10061 57.62
10061 15.37
11400 6
11401 49.39
11401 105.71
11403 63.5
11403 116.85

I would like to total all the amounts for the specific CPT code:

CPT Amt
10021
10021
10021
10021 775.5
10061
10061 72.99
11400 6
11401
11401 155.1
11403
11403 180.35

The list has a bout 8000 codes so I'm really looking for something that I
can just scroll down.
Thanks!





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
VLookup multiple values - sum returned values into single cell se7098 Excel Worksheet Functions 12 April 2nd 23 07:32 PM
Vlookup multiple criteria multiple occurrences sum values se7098 Excel Worksheet Functions 0 March 26th 09 07:31 PM
vlookup on multiple values samuel Excel Worksheet Functions 3 May 7th 08 04:01 PM
Vlookup for multiple values SCHM Excel Worksheet Functions 6 June 23rd 06 09:10 PM
vlookup, multiple values, sum values into one cell?? Phillips L Excel Worksheet Functions 4 November 9th 05 12:31 AM


All times are GMT +1. The time now is 09:43 AM.

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"