View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Jon Peltier Jon Peltier is offline
external usenet poster
 
Posts: 6,582
Default adding a 3rd criteria to an IF formula

Sometimes when I get stuck, I edit the formula in NotePad, and use lots of
lines, line breaks, and initial spaces to display the formula. I'll start
with the outermost part like this:

=SUM(
)

then I'll insert the next part:

=SUM(
IF(condition,
if_true,
if_false
)
)

and so on. When it all seems logical and correct, I remove the spaces and
line feeds, and paste it into the cell.

I've seen at least a couple of formula editors on various web sites (check
Dick Kusleika's blog, Daily Dose of Excel), but none have seemed easier to
me than NotePad.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______



"GD" wrote in message
...
Hi, just reffirming my request for help in adding a 3rd criteria to the
below
formula, can't for the life of me get it sorted! cheers

=SUM(IF(MOD(ROW('2008 Errors'!$A$3:$A$3000),10)=3,IF((YEAR('2008
Errors'!$A$3:$A$3000)=2008)*(MONTH('2008 Errors'!$A$3:$A$3000)=1)*
(LEN('2008 Errors'!P3:P3000)-LEN(SUBSTITUTE('2008
Errors'!P3:P3000,"KT",""))0),1)))

I'm looking to add a 3rd criteria dependand on a further range of cells
('2008 Errors'!B3:B3000) with the
text "Fax" occuring in them (and in the month of January in A3-A3000 and
"KT" in P3:P3000 as detailed in the formula above) would then produce a
cumulative result as the obove formula does for the two criteria...getting
mixed up with my brackets etc
Cheers