Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Return sum of values based on lookup-function

Hi ! I want to do as follows: I work in another worksheet than the data.
Wanting to find the same 6-digit number in the other worksheet and return the
value from column B to the other worksheet. that works when the 6-digit no.
appears in one row. But for th no: 879048 I would like to return the sum of
the three rows, in total 7618 - how can I do that? I use Office 2003

=LOOKUP($A8;$A$2:$A$5;(B$2:S$5))
=LOOKUP($A9;$A$2:$A$5;(B$2:S$5))
A B
1 UB
2 87 90 48 3806
3 87 90 48 2156
4 87 90 48 1656
5 87 90 51 1856
6
7 another worksheet
8 87 90 48 N/A I can not get the sum of 7618 to this cell
9 87 90 51 1856 works OK

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Return sum of values based on lookup-function

.. would like to return the sum of the three rows, in total 7618
SUMIF will do the necessary

In A8 is: 87 90 48
Then in B8: =SUMIF(A$2:A$5,A8,B$2:B$5)
to return: 7618

Adapt the delimiter to suit your Excel
(change the commas to semicolons)

Celebrate? Click YES below.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:23,500 Files:370 Subscribers:66
xdemechanik
---
"Braute" wrote:
Hi ! I want to do as follows: I work in another worksheet than the data.
Wanting to find the same 6-digit number in the other worksheet and return the
value from column B to the other worksheet. that works when the 6-digit no.
appears in one row. But for th no: 879048 I would like to return the sum of
the three rows, in total 7618 - how can I do that? I use Office 2003

=LOOKUP($A8;$A$2:$A$5;(B$2:S$5))
=LOOKUP($A9;$A$2:$A$5;(B$2:S$5))
A B
1 UB
2 87 90 48 3806
3 87 90 48 2156
4 87 90 48 1656
5 87 90 51 1856
6
7 another worksheet
8 87 90 48 N/A I can not get the sum of 7618 to this cell
9 87 90 51 1856 works OK

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
Return an array based on a lookup seanss Excel Worksheet Functions 2 September 25th 08 06:15 AM
Lookup based on two variables and return a third Mark Excel Worksheet Functions 3 August 29th 08 03:26 PM
Lookup based on 2 columns; return 1 value MsBeverlee Excel Worksheet Functions 4 December 16th 07 08:20 PM
Return value based on checkboxes selected -- IF() LOOKUP() dq Excel Worksheet Functions 2 April 17th 07 07:48 PM
How do I use LOOKUP to return a range of values, then SUM values? irvine79 Excel Worksheet Functions 5 August 4th 06 01:33 PM


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