Vlookup/Database formula problems

S

shternm

You've got paste your pivot table in another location (like past
values) bec. Vlookup can't read off Pivot tables.
Then use this formula:
=VLOOKUP(B7,data,2,FALSE)

B7 is your date
data is your named copied pivot table
2 is the column within your data that you want returned.
Hopefully, this makes sense :
 
A

aly1cat

vlookup is no good to be if I cannot use pivot tables.

What I need is a formula that can search for a month in a database and
add all corresponding figures for that month e.g if Jan 04 has 6
entry's - I would like the formula to search for a specific month then
enter the TOTAL amount in the specified cell/worksheet.

Attachment filename: example.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=426125
 
P

Peo Sjoblom

=SUMPRODUCT(--(MONTH(A2:A100)=1),B2:B100)

will sum B for January in A, if there can be blanks in A while there are
values in B then you need to add

=SUMPRODUCT(--(MONTH(A2:A100)=1),--(A2:A100<>""),B2:B100)
 
P

Peo Sjoblom

If there are different January dates. For one particular date yes but if the
OP wants
sum B for all January dates it is easier than using 2 sumif
(">="&DATE(2004,01,01)-">"&DATE(2004,01,31))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top