View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Bernard Liengme Bernard Liengme is offline
external usenet poster
 
Posts: 4,393
Default How many IF functions can you have?

You can next function (including IF) to 7 levels only
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"heater" wrote in message
...
I have the following formula:
=IF(AND(S32="Yes",U32="Yes",W32="Yes",Y32="Yes"),Z 32+AA32+AB32+AC32,IF(U32="",Z32,IF(U32="Yes",Z32+A A32,IF(W32="",Z32+AA32,IF(W32="Yes",Z32+AA32+AB32, IF(Y32="",Z32+AA32+AB32,IF(Y32="Yes",Z32+AA32+AB32 +AC32,IF(M32="No",0))))))))

The problem is when W32 is "Yes". It does not add the totals in Z32,AA32,
&
AB32. However, when S32, U32, W32, & Y32 = "Yes", then the total of all
four
cells totals the correct total. There probably is an easier formula.