Vlookup + sumif , but how????

  • Follow


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
0
Reply Utf 4/21/2010 4:10:01 PM

how about

=SUMIF(D53:D65,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
0
Reply Utf 4/21/2010 4:20:05 PM


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.
> 
> =)
> 
> 
> 
> 
0
Reply Roger 4/21/2010 4:25:16 PM

Roger,

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

=3DSUMIF(D:D,A67,E:E)

Hope this helps.

Pete

On Apr 21, 5:25=A0pm, Roger Govier <ro...@technology4nospamu.co.uk>
wrote:
> Hi Jesse
>
> Try
> =3DSUMIF(DD,"qq",E:E)
> or better still, place qq in a cell like A67 then use
> =3DSUMIF(DD,"=3D"&A67,E:E)
> --
> Regards
> Roger Govier
>
>
>
> Jessejames wrote:
> > this is my database
>
> > (ROW and column A52 IS description)
>
> > =A0 =A0 =A0 =A0 =A0A =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 B =A0 =A0 =A0 =A0 =
=A0 C =A0 =A0 =A0 =A0 =A0D =A0 =A0 =A0 =A0 =A0 =A0E =A0 =A0 =A0 =A0 =A0 =A0
> > =A0F =A0 =A0 =A0 =A0 =A0 =A0 =A0G
> > =A0description =A0 data b =A0 =A0data c =A0 =A0 =A0name =A0tot =A0 =A0 =
=A0 tot a =A0 =A0 =A0 =A0totb =A0
>
> > purple =A0 =A0 =A0 =A0 =A0 1 =A0 =A01 =A0 =A0 =A0 qq =A0 12000 =A0 =A0 =
=A00 =A0 =A012000.0
> > yellow =A0 =A0 =A0 =A0 =A0 1 =A0 =A0 =A0 =A0 =A0 =A01 =A0 =A0 =A0 ww =
=A0 630 =A0 =A0 =A0 =A00 =A0 =A0630.0
> > blue =A0 =A0 =A0 =A0 =A0 =A0 1 =A0 =A01 =A0 =A0 =A0 ee =A0 1341 =A0 =A0=
 =A0 0 =A0 =A01341.0
> > orange =A0 =A0 =A0 =A0 =A01 =A0 =A0 1 =A0 =A0 =A0 rr =A0 17548 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 0 =A0 17548.0
> > black =A0 =A0 =A0 =A0 =A0 1 =A0 =A0 1 =A0 =A0 =A0 tt =A0 228 =A0 =A0 =
=A0 =A0 0 =A0 228.0
> > purple =A0 =A0 =A0 =A0 1 =A0 =A0 =A01 =A0 =A0 =A0 yy =A0 131 =A0 =A0 =
=A0 =A0 0 =A0 131.0
> > black =A0 =A0 =A0 =A0 1 =A0 =A0 =A0 1 =A0 =A0 =A0uu =A0 =A027090 =A0 =
=A0 =A00 =A0 =A027090.0
> > blue =A0 =A0 =A0 =A0 =A01 =A0 =A0 =A0 1 =A0 =A0 =A0gg =A0 =A01854 =A0 =
=A0 =A0 0 =A0 =A01854.0
> > black =A0 =A0 =A0 =A0 1 =A0 =A0 =A0 1 =A0 =A0 =A0ff =A0 =A03975 =A0 =A0=
 =A0 0 =A0 =A03975.0
> > black =A0 =A0 =A0 =A0 1 =A0 =A0 =A0 1 =A0 =A0 =A0dd =A0 =A053620 =A0 =
=A0 =A00 =A0 =A053620.0
> > blue =A0 =A0 =A0 =A0 =A01 =A0 =A0 =A0 1 =A0 =A0 =A0ss =A0 =A087226 =A0 =
=A0 =A00 =A0 =A087226.0
> > purple =A0 =A0 =A0 =A01 =A0 =A0 =A0 1 =A0 =A0 =A0qq =A0 =A016000 =A0 =
=A0 =A00 =A0 =A016000.0
>
> > query 1 =3D to look the value ee which is located at column d
>
> > ee =A0=3DVLOOKUP(A67,D53:E65,2,FALSE)
>
> > correct
>
> > query 2 =3D to look the value of qq which is located also at column D b=
ut they
> > have 2 quantities, so they have to add.
> > answer =3D ???
>
> > thanks for helping.
>
> > =3D)- Hide quoted text -
>
> - Show quoted text -

0
Reply Pete_UK 4/21/2010 4:38:31 PM

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:D,A67,E:E)
> 
> Hope this helps.
> 
> Pete
> 
> On Apr 21, 5:25 pm, Roger Govier <ro...@technology4nospamu.co.uk>
> 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 -
> 
0
Reply Roger 4/21/2010 5:41:04 PM

4 Replies
177 Views

(page loaded in 0.331 seconds)

Similiar Articles:
















7/6/2012 6:09:44 AM


Reply: