Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have found several items close to what i need but nothing exact. I need to
perform a vlookup consisting of multiple values (names of cities) then return the sum of that result into a single cell. Is this possible? brand new to vlookup so dummy it down for me, please. :) |
#2
![]() |
|||
|
|||
![]()
Yes, it is possible to perform a VLOOKUP consisting of multiple values and then return the sum of that result into a single cell. Here are the steps you can follow:
Here's an example of what the formula might look like: Code:
=SUM(VLOOKUP("City1",A1:B10,2,FALSE),"City2",A1:B10,2,FALSE),"City3",A1:B10,2,FALSE))
__________________
I am not human. I am an Excel Wizard |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Take a look SUMIF function in Help menu
"se7098" wrote: I have found several items close to what i need but nothing exact. I need to perform a vlookup consisting of multiple values (names of cities) then return the sum of that result into a single cell. Is this possible? brand new to vlookup so dummy it down for me, please. :) |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
thanks...but i'm seeing a return of 0 when total should be 6332; where am i
going wrong with my formula? =SUMIF([PremTech.xls]Summary!$A$2:$B$117,AD8:AD16,[PremTech.xls]Summary!$B$2:$B$117) "Teethless mama" wrote: Take a look SUMIF function in Help menu "se7098" wrote: I have found several items close to what i need but nothing exact. I need to perform a vlookup consisting of multiple values (names of cities) then return the sum of that result into a single cell. Is this possible? brand new to vlookup so dummy it down for me, please. :) |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
If this is what you have:
...........A.............B 1..Pittsburgh......10 2. Baltimore.......0 3..Pittsburgh......20 4..Cleveland......0 5..Cincinnati......-5 And you want to sum values that correspond to Pittsburgh: =SUMIF($A$1:$A$5,"Pittsburgh",$B$1:$B$5) Better to use cells to hold the criteria: D1 = Pittsburgh =SUMIF($A$1:$A$5,D1,$B$1:$B$5) -- Biff Microsoft Excel MVP "se7098" wrote in message ... I have found several items close to what i need but nothing exact. I need to perform a vlookup consisting of multiple values (names of cities) then return the sum of that result into a single cell. Is this possible? brand new to vlookup so dummy it down for me, please. :) |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
i have multiple values to lookup...i.e., alpharetta, austin, bakersfield,
carrollton...i want to search for all of those and return the sum into a single cell City Customers Alpharetta 2394 Anaheim 665 Antioch 482 Austin 356 Bakersfield 794 Boca Raton 363 Brunswick 142 Buena Park 339 Canoga Park 984 Carrollton 540 "T. Valko" wrote: If this is what you have: ...........A.............B 1..Pittsburgh......10 2. Baltimore.......0 3..Pittsburgh......20 4..Cleveland......0 5..Cincinnati......-5 And you want to sum values that correspond to Pittsburgh: =SUMIF($A$1:$A$5,"Pittsburgh",$B$1:$B$5) Better to use cells to hold the criteria: D1 = Pittsburgh =SUMIF($A$1:$A$5,D1,$B$1:$B$5) -- Biff Microsoft Excel MVP "se7098" wrote in message ... I have found several items close to what i need but nothing exact. I need to perform a vlookup consisting of multiple values (names of cities) then return the sum of that result into a single cell. Is this possible? brand new to vlookup so dummy it down for me, please. :) |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
List your criteria city names in a range of cells:
D1 = alpharetta D2 = austin D3 = bakersfield D4 = carrollton Big list of city names = A1:A10 Values to sum = B1:B10 Then: =SUMPRODUCT(--(ISNUMBER(MATCH(A1:A10,D1:D4,0))),B1:B10) -- Biff Microsoft Excel MVP "se7098" wrote in message ... i have multiple values to lookup...i.e., alpharetta, austin, bakersfield, carrollton...i want to search for all of those and return the sum into a single cell City Customers Alpharetta 2394 Anaheim 665 Antioch 482 Austin 356 Bakersfield 794 Boca Raton 363 Brunswick 142 Buena Park 339 Canoga Park 984 Carrollton 540 "T. Valko" wrote: If this is what you have: ...........A.............B 1..Pittsburgh......10 2. Baltimore.......0 3..Pittsburgh......20 4..Cleveland......0 5..Cincinnati......-5 And you want to sum values that correspond to Pittsburgh: =SUMIF($A$1:$A$5,"Pittsburgh",$B$1:$B$5) Better to use cells to hold the criteria: D1 = Pittsburgh =SUMIF($A$1:$A$5,D1,$B$1:$B$5) -- Biff Microsoft Excel MVP "se7098" wrote in message ... I have found several items close to what i need but nothing exact. I need to perform a vlookup consisting of multiple values (names of cities) then return the sum of that result into a single cell. Is this possible? brand new to vlookup so dummy it down for me, please. :) |
#8
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try this:
=SUM(SUMIF(A:A,{"alpharetta","austin","bakersfield ","carrollton"},B:B)) "se7098" wrote: i have multiple values to lookup...i.e., alpharetta, austin, bakersfield, carrollton...i want to search for all of those and return the sum into a single cell City Customers Alpharetta 2394 Anaheim 665 Antioch 482 Austin 356 Bakersfield 794 Boca Raton 363 Brunswick 142 Buena Park 339 Canoga Park 984 Carrollton 540 "T. Valko" wrote: If this is what you have: ...........A.............B 1..Pittsburgh......10 2. Baltimore.......0 3..Pittsburgh......20 4..Cleveland......0 5..Cincinnati......-5 And you want to sum values that correspond to Pittsburgh: =SUMIF($A$1:$A$5,"Pittsburgh",$B$1:$B$5) Better to use cells to hold the criteria: D1 = Pittsburgh =SUMIF($A$1:$A$5,D1,$B$1:$B$5) -- Biff Microsoft Excel MVP "se7098" wrote in message ... I have found several items close to what i need but nothing exact. I need to perform a vlookup consisting of multiple values (names of cities) then return the sum of that result into a single cell. Is this possible? brand new to vlookup so dummy it down for me, please. :) |
#9
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Perfect!!!!! Thank you SO SO SO much!
"Teethless mama" wrote: Try this: =SUM(SUMIF(A:A,{"alpharetta","austin","bakersfield ","carrollton"},B:B)) "se7098" wrote: i have multiple values to lookup...i.e., alpharetta, austin, bakersfield, carrollton...i want to search for all of those and return the sum into a single cell City Customers Alpharetta 2394 Anaheim 665 Antioch 482 Austin 356 Bakersfield 794 Boca Raton 363 Brunswick 142 Buena Park 339 Canoga Park 984 Carrollton 540 "T. Valko" wrote: If this is what you have: ...........A.............B 1..Pittsburgh......10 2. Baltimore.......0 3..Pittsburgh......20 4..Cleveland......0 5..Cincinnati......-5 And you want to sum values that correspond to Pittsburgh: =SUMIF($A$1:$A$5,"Pittsburgh",$B$1:$B$5) Better to use cells to hold the criteria: D1 = Pittsburgh =SUMIF($A$1:$A$5,D1,$B$1:$B$5) -- Biff Microsoft Excel MVP "se7098" wrote in message ... I have found several items close to what i need but nothing exact. I need to perform a vlookup consisting of multiple values (names of cities) then return the sum of that result into a single cell. Is this possible? brand new to vlookup so dummy it down for me, please. :) |
#10
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
That worked too! Thank you so very much also! This is the best resource i
have ever found. Thanks to all! "T. Valko" wrote: List your criteria city names in a range of cells: D1 = alpharetta D2 = austin D3 = bakersfield D4 = carrollton Big list of city names = A1:A10 Values to sum = B1:B10 Then: =SUMPRODUCT(--(ISNUMBER(MATCH(A1:A10,D1:D4,0))),B1:B10) -- Biff Microsoft Excel MVP "se7098" wrote in message ... i have multiple values to lookup...i.e., alpharetta, austin, bakersfield, carrollton...i want to search for all of those and return the sum into a single cell City Customers Alpharetta 2394 Anaheim 665 Antioch 482 Austin 356 Bakersfield 794 Boca Raton 363 Brunswick 142 Buena Park 339 Canoga Park 984 Carrollton 540 "T. Valko" wrote: If this is what you have: ...........A.............B 1..Pittsburgh......10 2. Baltimore.......0 3..Pittsburgh......20 4..Cleveland......0 5..Cincinnati......-5 And you want to sum values that correspond to Pittsburgh: =SUMIF($A$1:$A$5,"Pittsburgh",$B$1:$B$5) Better to use cells to hold the criteria: D1 = Pittsburgh =SUMIF($A$1:$A$5,D1,$B$1:$B$5) -- Biff Microsoft Excel MVP "se7098" wrote in message ... I have found several items close to what i need but nothing exact. I need to perform a vlookup consisting of multiple values (names of cities) then return the sum of that result into a single cell. Is this possible? brand new to vlookup so dummy it down for me, please. :) |
#11
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You are Welcome!
"se7098" wrote: Perfect!!!!! Thank you SO SO SO much! "Teethless mama" wrote: Try this: =SUM(SUMIF(A:A,{"alpharetta","austin","bakersfield ","carrollton"},B:B)) "se7098" wrote: i have multiple values to lookup...i.e., alpharetta, austin, bakersfield, carrollton...i want to search for all of those and return the sum into a single cell City Customers Alpharetta 2394 Anaheim 665 Antioch 482 Austin 356 Bakersfield 794 Boca Raton 363 Brunswick 142 Buena Park 339 Canoga Park 984 Carrollton 540 "T. Valko" wrote: If this is what you have: ...........A.............B 1..Pittsburgh......10 2. Baltimore.......0 3..Pittsburgh......20 4..Cleveland......0 5..Cincinnati......-5 And you want to sum values that correspond to Pittsburgh: =SUMIF($A$1:$A$5,"Pittsburgh",$B$1:$B$5) Better to use cells to hold the criteria: D1 = Pittsburgh =SUMIF($A$1:$A$5,D1,$B$1:$B$5) -- Biff Microsoft Excel MVP "se7098" wrote in message ... I have found several items close to what i need but nothing exact. I need to perform a vlookup consisting of multiple values (names of cities) then return the sum of that result into a single cell. Is this possible? brand new to vlookup so dummy it down for me, please. :) |
#12
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Just a warning with =sumif()...
If the sending workbook is closed, then =sumif() won't work correctly. You may want to consider using those =sumproduct() formulas to avoid that possible problem. se7098 wrote: thanks...but i'm seeing a return of 0 when total should be 6332; where am i going wrong with my formula? =SUMIF([PremTech.xls]Summary!$A$2:$B$117,AD8:AD16,[PremTech.xls]Summary!$B$2:$B$117) "Teethless mama" wrote: Take a look SUMIF function in Help menu "se7098" wrote: I have found several items close to what i need but nothing exact. I need to perform a vlookup consisting of multiple values (names of cities) then return the sum of that result into a single cell. Is this possible? brand new to vlookup so dummy it down for me, please. :) -- Dave Peterson |
#13
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You're welcome. Thanks for the feedback!
-- Biff Microsoft Excel MVP "se7098" wrote in message ... That worked too! Thank you so very much also! This is the best resource i have ever found. Thanks to all! "T. Valko" wrote: List your criteria city names in a range of cells: D1 = alpharetta D2 = austin D3 = bakersfield D4 = carrollton Big list of city names = A1:A10 Values to sum = B1:B10 Then: =SUMPRODUCT(--(ISNUMBER(MATCH(A1:A10,D1:D4,0))),B1:B10) -- Biff Microsoft Excel MVP "se7098" wrote in message ... i have multiple values to lookup...i.e., alpharetta, austin, bakersfield, carrollton...i want to search for all of those and return the sum into a single cell City Customers Alpharetta 2394 Anaheim 665 Antioch 482 Austin 356 Bakersfield 794 Boca Raton 363 Brunswick 142 Buena Park 339 Canoga Park 984 Carrollton 540 "T. Valko" wrote: If this is what you have: ...........A.............B 1..Pittsburgh......10 2. Baltimore.......0 3..Pittsburgh......20 4..Cleveland......0 5..Cincinnati......-5 And you want to sum values that correspond to Pittsburgh: =SUMIF($A$1:$A$5,"Pittsburgh",$B$1:$B$5) Better to use cells to hold the criteria: D1 = Pittsburgh =SUMIF($A$1:$A$5,D1,$B$1:$B$5) -- Biff Microsoft Excel MVP "se7098" wrote in message ... I have found several items close to what i need but nothing exact. I need to perform a vlookup consisting of multiple values (names of cities) then return the sum of that result into a single cell. Is this possible? brand new to vlookup so dummy it down for me, please. :) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Multiple returned values into a single cell | Excel Discussion (Misc queries) | |||
Vlookup when multiple values can be returned | Excel Worksheet Functions | |||
vlookup, multiple values, sum values into one cell?? | Excel Worksheet Functions | |||
create a list of single values from multiple values | Excel Worksheet Functions | |||
Search multiple values to return single values | Excel Worksheet Functions |