#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Vlookup


Hi,
I'm a newbie to excel,

I need to lookup for a string for ex "Brew" or "Lunch" in column 3 and
find the value of the cell in the same row and column 4. Add all these
values and the sum should be displayed in say g3.

Thanks for all your help


--
kaushik
------------------------------------------------------------------------
kaushik's Profile: http://www.excelforum.com/member.php...o&userid=34715
View this thread: http://www.excelforum.com/showthread...hreadid=544812

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Vlookup

If that formula would produce the correct answer, then
Faster would be

=sumif(C:C,"Brew",D:D)

--
Regards,
Tom Ogilvy


"Ardus Petus" wrote:

=SUMPRODUCT(--(C1:C999="Brew"),D1:D999)

HTH
--
AP

"kaushik" a écrit
dans le message de news:
...

Hi,
I'm a newbie to excel,

I need to lookup for a string for ex "Brew" or "Lunch" in column 3 and
find the value of the cell in the same row and column 4. Add all these
values and the sum should be displayed in say g3.

Thanks for all your help


--
kaushik
------------------------------------------------------------------------
kaushik's Profile:
http://www.excelforum.com/member.php...o&userid=34715
View this thread: http://www.excelforum.com/showthread...hreadid=544812




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Vlookup


Hi HTH,

Thanks for your quick response.

Extrapulating my earlier question. How do I do the same if the columns
are in a different sheet. How do I reference to a different sheet.

Thanks a lot for your help.
-Kaushik


--
kaushik
------------------------------------------------------------------------
kaushik's Profile: http://www.excelforum.com/member.php...o&userid=34715
View this thread: http://www.excelforum.com/showthread...hreadid=544812



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Vlookup

I agree it is very powerful, but because of the way array formulas perform
(and it performs like an array formula) they can be very slow for large
ranges (I am sure you know that - put just repeating here for completeness).
So for single conditions, I try to use sumif or countif if possible and
leave the heavy lifting for sumproduct or an array formula when required.

--
Regards,
Tom Ogilvy


"Ardus Petus" wrote:

Nice shot, Tom!

Since I discovered SUMPRODUCT, I do everything with it

Cheers,
--
AP

"Tom Ogilvy" a écrit dans le message
de news: ...
If that formula would produce the correct answer, then
Faster would be

=sumif(C:C,"Brew",D:D)

--
Regards,
Tom Ogilvy


"Ardus Petus" wrote:

=SUMPRODUCT(--(C1:C999="Brew"),D1:D999)

HTH
--
AP

"kaushik" a écrit
dans le message de news:
...

Hi,
I'm a newbie to excel,

I need to lookup for a string for ex "Brew" or "Lunch" in column 3 and
find the value of the cell in the same row and column 4. Add all these
values and the sum should be displayed in say g3.

Thanks for all your help


--
kaushik
------------------------------------------------------------------------
kaushik's Profile:
http://www.excelforum.com/member.php...o&userid=34715
View this thread:
http://www.excelforum.com/showthread...hreadid=544812







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
If (Vlookup 0) working, but what if Vlookup cell does not exist Steve Excel Worksheet Functions 18 November 18th 09 07:33 PM
VLookUp - Does the VLookUp return the exact information? Cpviv Excel Worksheet Functions 2 October 28th 08 09:57 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


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