Thread: logical test
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre Ron Coderre is offline
external usenet poster
 
Posts: 2,118
Default logical test

Hi, LisaD

This formula checks if C9 contains "jul" (it is not case-sensitive)
=IF(COUNTIF(C9, "*Jul*"), 40*E9, 0)

(An alternative is to use the FIND or SEARCH functions, but then you must
trap the error returned if the search string is not found)

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"LisaD" wrote:

Stumped on this one... is it possible to have more than one logical test
using the "IF" function? My example:

C9 is a drop down that includes months (i.e. Jul, Mid-Jul, End-Jul). I need
to calculate all the July's, not just "Jul".

This is what I need, but I don't know how to setup it up.
IF C9 = "Jul" or "Mid-Jul" or "End-Jul", 40*E9, 0

Many thanks!!