if function

G

Garf

2 questions in one here, i have a dataset that list dates, values and codes
for reps, can i use the if function to look through a table of dates, isolate
the ones that fall into say feb and return the value if the coded rep has any
orders in March

Dataset looks as follows

02-Apr-09 £1,500.00 207
07-Mar-09 £1,640.00 102
21-Mar-09 £500.00 307
15-Feb-09 £1,800.00 202
18-Feb-09 £1,000.00 404
28-Feb-09 £5,000.00 504
29-Apr-09 £2,200.00 404
17-Feb-09 £750.00 103
07-Mar-09 £1,000.00 400

So if i just wanted the value returned for Feb for 404 could i do it as i
can only add one criteria using the wizard,
 
J

Jarek Kujawa

=SUM(IF((MONTH(A1:A100)=2)*(YEAR(A1:A100)=2009)*(C1:C100=404)),B1:B100,))

CTRL+SHIFT+ENTER it as it is an array-formula (instead of just using ENTER
to insert it into a cell)


another way:

=SUMPRODUCT((MONTH(A1:A100)=2)*(YEAR(A1:A100)=2009)*(C1:C100=404)*B1:B100)

ENTER only

pls click YES if this was helpful
 

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