Thread: if function
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Garf[_2_] Garf[_2_] is offline
external usenet poster
 
Posts: 13
Default if function

Thanks Jarek you have saved me a ton of work

Kind Regards

Garf

"Jarek Kujawa" wrote:

=SUM(IF((MONTH(A1:A100)=2)*(YEAR(A1:A100)=2009)*(C 1: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



U¿ytkownik "Garf" napisa³ w wiadomo¶ci
...
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,