Forum Discussion

gandriol's avatar
gandriol
Copper Contributor
May 26, 2022
Solved

Function IF

Hello,

I need help with this function.
I'm trying to relate the IF function to a list with VLOOKUP entries.

I want to know if certain entries of certain words appear on the list.

I tried this for exemple:
=IF(C4:C999="Travel";"-5";"0")
where C4:C999 is the collum with the VLOOKUP entries
Travel is the entry i want to relate to "-5"




6 Replies

  • gandriol's avatar
    gandriol
    Copper Contributor
    Hello,
    Its doesn't work. My office is in Portuguese, we use ";" instead of ","
    If i use =IF(C4="Travel","-5","0") it relates to entries only the C4 cell.
    My objective is to detect if there is any "Travel" entries in C4:C999
    • NikolinoDE's avatar
      NikolinoDE
      Gold Contributor
      =SE(CONTAR.SE(C4:C999;"Travel")>0;"-5";"0") Portugal
      =SE(CONT.SE(C4:C999;"Travel")>0;"-5";"0") Brasil

Resources