Forum Discussion

Laura Cheeping's avatar
Laura Cheeping
Copper Contributor
Apr 04, 2018
Solved

Excel Formula - formula based on if cell contains

Please help! I am trying to create a formula that will do the following:  If cell B2 contains "Inbound" then return data in cell D2, if cell B2 contains "Outbound" then return data in cell C2.   Co...
  • Jamil's avatar
    Apr 04, 2018
    This formula will do the job

    =IF(ISNUMBER(SEARCH("Inbound",B2)),D2,IF(ISNUMBER(SEARCH("Outbound",B2)),C2,""))

Resources