A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Vlookup + sumif , but how????



 
 
Thread Tools Display Modes
  #1  
Old April 21st, 2010, 05:10 PM posted to microsoft.public.excel.worksheet.functions
Jessejames
external usenet poster
 
Posts: 4
Default Vlookup + sumif , but how????

this is my database

(ROW and column A52 IS description)

A B C D E
F G
description data b data c name tot tot a totb

purple 1 1 qq 12000 0 12000.0
yellow 1 1 ww 630 0 630.0
blue 1 1 ee 1341 0 1341.0
orange 1 1 rr 17548 0 17548.0
black 1 1 tt 228 0 228.0
purple 1 1 yy 131 0 131.0
black 1 1 uu 27090 0 27090.0
blue 1 1 gg 1854 0 1854.0
black 1 1 ff 3975 0 3975.0
black 1 1 dd 53620 0 53620.0
blue 1 1 ss 87226 0 87226.0
purple 1 1 qq 16000 0 16000.0


query 1 = to look the value ee which is located at column d

ee =VLOOKUP(A67,D53:E65,2,FALSE)

correct

query 2 = to look the value of qq which is located also at column D but they
have 2 quantities, so they have to add.
answer = ???

thanks for helping.

=)




--
xxxJessexxx


"Paul" wrote:


--
xxxJessexxx
  #2  
Old April 21st, 2010, 05:20 PM posted to microsoft.public.excel.worksheet.functions
Duke Carey
external usenet poster
 
Posts: 1,027
Default Vlookup + sumif , but how????

how about

=SUMIF(D5365,a67,E53:E65)

which says, if any rows in D53 to D65 = A67, sum the corrsponding values in
E53:E65

"Jessejames" wrote:

this is my database

(ROW and column A52 IS description)

A B C D E
F G
description data b data c name tot tot a totb

purple 1 1 qq 12000 0 12000.0
yellow 1 1 ww 630 0 630.0
blue 1 1 ee 1341 0 1341.0
orange 1 1 rr 17548 0 17548.0
black 1 1 tt 228 0 228.0
purple 1 1 yy 131 0 131.0
black 1 1 uu 27090 0 27090.0
blue 1 1 gg 1854 0 1854.0
black 1 1 ff 3975 0 3975.0
black 1 1 dd 53620 0 53620.0
blue 1 1 ss 87226 0 87226.0
purple 1 1 qq 16000 0 16000.0


query 1 = to look the value ee which is located at column d

ee =VLOOKUP(A67,D53:E65,2,FALSE)

correct

query 2 = to look the value of qq which is located also at column D but they
have 2 quantities, so they have to add.
answer = ???

thanks for helping.

=)




--
xxxJessexxx


"Paul" wrote:


--
xxxJessexxx

  #3  
Old April 21st, 2010, 05:25 PM posted to microsoft.public.excel.worksheet.functions
Roger Govier[_8_]
external usenet poster
 
Posts: 338
Default Vlookup + sumif , but how????

Hi Jesse

Try
=SUMIF(DD,"qq",E:E)
or better still, place qq in a cell like A67 then use
=SUMIF(DD,"="&A67,E:E)
--
Regards
Roger Govier

Jessejames wrote:
this is my database

(ROW and column A52 IS description)

A B C D E
F G
description data b data c name tot tot a totb

purple 1 1 qq 12000 0 12000.0
yellow 1 1 ww 630 0 630.0
blue 1 1 ee 1341 0 1341.0
orange 1 1 rr 17548 0 17548.0
black 1 1 tt 228 0 228.0
purple 1 1 yy 131 0 131.0
black 1 1 uu 27090 0 27090.0
blue 1 1 gg 1854 0 1854.0
black 1 1 ff 3975 0 3975.0
black 1 1 dd 53620 0 53620.0
blue 1 1 ss 87226 0 87226.0
purple 1 1 qq 16000 0 16000.0


query 1 = to look the value ee which is located at column d

ee =VLOOKUP(A67,D53:E65,2,FALSE)

correct

query 2 = to look the value of qq which is located also at column D but they
have 2 quantities, so they have to add.
answer = ???

thanks for helping.

=)




  #4  
Old April 21st, 2010, 05:38 PM posted to microsoft.public.excel.worksheet.functions
Pete_UK
external usenet poster
 
Posts: 8,780
Default Vlookup + sumif , but how????

Roger,

do you really need the equals in your second example? Plus, you missed
a colon between the DD in both examples:

=SUMIF(D,A67,E:E)

Hope this helps.

Pete

On Apr 21, 5:25*pm, Roger Govier
wrote:
Hi Jesse

Try
=SUMIF(DD,"qq",E:E)
or better still, place qq in a cell like A67 then use
=SUMIF(DD,"="&A67,E:E)
--
Regards
Roger Govier



Jessejames wrote:
this is my database


(ROW and column A52 IS description)


* * * * *A * * * * * * * * B * * * * * C * * * * *D * * * * * *E * * * * * *
*F * * * * * * *G
*description * data b * *data c * * *name *tot * * * tot a * * * *totb *


purple * * * * * 1 * *1 * * * qq * 12000 * * *0 * *12000.0
yellow * * * * * 1 * * * * * *1 * * * ww * 630 * * * *0 * *630.0
blue * * * * * * 1 * *1 * * * ee * 1341 * * * 0 * *1341.0
orange * * * * *1 * * 1 * * * rr * 17548 * * * * * * * 0 * 17548.0
black * * * * * 1 * * 1 * * * tt * 228 * * * * 0 * 228.0
purple * * * * 1 * * *1 * * * yy * 131 * * * * 0 * 131.0
black * * * * 1 * * * 1 * * *uu * *27090 * * *0 * *27090.0
blue * * * * *1 * * * 1 * * *gg * *1854 * * * 0 * *1854.0
black * * * * 1 * * * 1 * * *ff * *3975 * * * 0 * *3975.0
black * * * * 1 * * * 1 * * *dd * *53620 * * *0 * *53620.0
blue * * * * *1 * * * 1 * * *ss * *87226 * * *0 * *87226.0
purple * * * *1 * * * 1 * * *qq * *16000 * * *0 * *16000.0


query 1 = to look the value ee which is located at column d


ee *=VLOOKUP(A67,D53:E65,2,FALSE)


correct


query 2 = to look the value of qq which is located also at column D but they
have 2 quantities, so they have to add.
answer = ???


thanks for helping.


=)- Hide quoted text -


- Show quoted text -


  #5  
Old April 21st, 2010, 06:41 PM posted to microsoft.public.excel.worksheet.functions
Roger Govier[_8_]
external usenet poster
 
Posts: 338
Default Vlookup + sumif , but how????

Quite right, Pete!
Typing too quickly, and my mind was elsewhere!!!
--
Regards
Roger Govier

Pete_UK wrote:
Roger,

do you really need the equals in your second example? Plus, you missed
a colon between the DD in both examples:

=SUMIF(D,A67,E:E)

Hope this helps.

Pete

On Apr 21, 5:25 pm, Roger Govier
wrote:
Hi Jesse

Try
=SUMIF(DD,"qq",E:E)
or better still, place qq in a cell like A67 then use
=SUMIF(DD,"="&A67,E:E)
--
Regards
Roger Govier



Jessejames wrote:
this is my database
(ROW and column A52 IS description)
A B C D E
F G
description data b data c name tot tot a totb
purple 1 1 qq 12000 0 12000.0
yellow 1 1 ww 630 0 630.0
blue 1 1 ee 1341 0 1341.0
orange 1 1 rr 17548 0 17548.0
black 1 1 tt 228 0 228.0
purple 1 1 yy 131 0 131.0
black 1 1 uu 27090 0 27090.0
blue 1 1 gg 1854 0 1854.0
black 1 1 ff 3975 0 3975.0
black 1 1 dd 53620 0 53620.0
blue 1 1 ss 87226 0 87226.0
purple 1 1 qq 16000 0 16000.0
query 1 = to look the value ee which is located at column d
ee =VLOOKUP(A67,D53:E65,2,FALSE)
correct
query 2 = to look the value of qq which is located also at column D but they
have 2 quantities, so they have to add.
answer = ???
thanks for helping.
=)- Hide quoted text -

- Show quoted text -


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:18 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.