LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default Cell value with multiple values to vlookup

Max,

It worked when I created a sample worksheet using Sheet1 and Sheet2 and
fictitional data. But when I copy the formula to the worksheet I'm using it
brings up a #VALUE! error. Can you help?

Here is some more details:

the worksheet's name I'm working is separate from the worksheet that
contains the number of employees per location code. The worksheet name that
has the data is HCount.xls and the sheet name is HC by Country. Column A has
the codes and column C has the number of employees.

So when I put the formula on my other sheet I get the error. Here is the
function I'm using:

=SUMPRODUCT((ISNUMBER(SEARCH('[HCount.xls]HC by
Country'!$A$11:$A$615,BG8)))*('[HCount.xls]HC by
Country'!$A$11:$A$615<""),'[HCount.xls]HC by Country'!$C$11:$C$615)


"Max" wrote:

One way
Assuming source data in Sheet1 cols A and B, from row 2 down
In another sheet,
you have the lookup values in A2 down
In B2:
=SUMPRODUCT((ISNUMBER(SEARCH(Sheet1!A$2:A$100,A2)) )*(Sheet1!A$2:A$100<""),Sheet1!B$2:B$100)
Copy down. Tested ok here.
If above helps, click YES below.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:23,500 Files:370 Subscribers:66
xdemechanik
---
"Matheus" wrote:
I have one spreadsheet with the a column with a location code and another
column with the number of employees (Colum A2:A200 are the codes and B2:B200
are the number of employees).

On another spreadsheet, some locations are combined into one sigle row. So I
have a cell with the location codes separated by a coma (example: A2 = 100,
200).

Is there a way for me to use a function on B2 similar to a vlookup that will
look both values from A2 and add them up?

 
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
returning multiple cell values from a vlookup SueB Excel Worksheet Functions 7 August 30th 08 12:28 AM
Vlookup multiple values suraneniaditya Excel Worksheet Functions 4 March 7th 08 03:58 AM
combine multiple values in a table into one cell using vlookup? Liam S. Excel Worksheet Functions 0 July 27th 06 09:21 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 05:14 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"