Consulting

Results 1 to 4 of 4

Thread: Add another condition to formula

  1. #1
    VBAX Tutor
    Joined
    Jan 2006
    Posts
    248
    Location

    Add another condition to formula

    I have this formula that show Min 3 required when the target cell number is less than 3, I cannot alter it to show if the target cell D218=0 then also show nothing.

    =IF(D218<3,"Min 3 Required","")

  2. #2
    Moderator VBAX Master geekgirlau's Avatar
    Joined
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,464
    Location
    It should already cope with that situation, as 0 is less than 3.

    If you also want to check for "" in D218,

    =IF(D218="","",IF(D218<3,"Min 3 Required",""))

  3. #3
    VBAX Tutor
    Joined
    Jan 2006
    Posts
    248
    Location
    Thanks for that geekgirl, I just had to change the ="" to =0 and works great, thanks again.

    =IF(D218=0,"",IF(D218<3,"Min 3 Required",""))

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    =IFAND((D218<>0,D218<3,"Min 3 Required","")

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •