Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Kind of Vlookup

Can someone help me with this one?

I want to write a function similiar to Vlookup;
Except it should be able to take more than one lookup value and the
add the values returned;

For Example
Column A Column B
Acc100 R 1000
Acc200 R 2000
Acc300 R 3000
Acc400 R 4000

The function should search Range(A1:B4) for say Acc100 and Acc300 an
then add the corresponding values from Column B
R1000 + R 3000 ;

Thanks

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Kind of Vlookup

Hi
one way:
=SUMIF(A1:A100,"Acc100",B1:B100)+SUMIF(A1:A100,"Ac c300",B1:B100)

or try
=SUMPRODUCT(--(A1:A100={"Acc100","Acc300"}),B1:B100)


--
Regards
Frank Kabel
Frankfurt, Germany


Can someone help me with this one?

I want to write a function similiar to Vlookup;
Except it should be able to take more than one lookup value and then
add the values returned;

For Example
Column A Column B
Acc100 R 1000
Acc200 R 2000
Acc300 R 3000
Acc400 R 4000

The function should search Range(A1:B4) for say Acc100 and Acc300 and
then add the corresponding values from Column B
R1000 + R 3000 ;

Thanks!


---
Message posted from http://www.ExcelForum.com/


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
A different kind of VLookup DubboPete Excel Discussion (Misc queries) 6 March 15th 10 10:43 AM
Looking for a function that performs a special kind of Vlookup Ayo Excel Discussion (Misc queries) 4 January 20th 10 12:06 AM
More vlookup questions (I think?)(kind of long) JaimeZX Excel Discussion (Misc queries) 3 February 18th 09 09:17 PM
Kind of a reverse vlookup sam Excel Worksheet Functions 4 May 7th 07 06:19 PM
Some kind of vlookup required? tcpeterso Excel Discussion (Misc queries) 4 May 19th 06 03:15 AM


All times are GMT +1. The time now is 06:25 AM.

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"