+ Reply to Thread
Results 1 to 4 of 4

Using IF function in existing formula

  1. #1
    Registered User
    Join Date
    05-13-2016
    Location
    USA
    MS-Off Ver
    Office 13
    Posts
    2

    Using IF function in existing formula

    Hello,

    I have a formula that pulls from sheet1 and adds a / in between the 2 words on sheet2.

    =REPLACE(ACTExport!C2,4,0,"/")&ACTExport!B2

    I want to use the IF function to only show ACTExport!B2 if ACTExport!C2=ACTExport!B2 but if not then show both.

    Example. YYY/XXX but if XXX/XXX then only show XXX no backslash.

    I am fairly new to using functions and formulas so any help is appreciated.

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,911

    Re: Using IF function in existing formula

    Try this ...
    =IF(ACTExport!C2=ACTExport!B2,ACTExport!C2,REPLACE(ACTExport!C2,4,0,"/")&ACTExport!B2)

  3. #3
    Registered User
    Join Date
    05-13-2016
    Location
    USA
    MS-Off Ver
    Office 13
    Posts
    2

    Re: Using IF function in existing formula

    Thanks this seems to work. Thank you.

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,911

    Re: Using IF function in existing formula

    You're welcome!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Integrate Left function to existing formula
    By tommyfernandez in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-29-2013, 12:23 PM
  2. Adding IF function to existing (complex) Formula
    By NDRYNWA in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-24-2013, 06:56 AM
  3. Calculate row number with row() function and use it in existing formula
    By bluerabbit in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-12-2013, 10:15 AM
  4. Which function to add to existing formula
    By meckenzie2012 in forum Excel General
    Replies: 2
    Last Post: 12-11-2012, 06:09 PM
  5. [SOLVED] How to nest a ROUND function into an existing formula
    By cmac7872 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-12-2012, 05:05 PM
  6. Replies: 4
    Last Post: 08-16-2006, 07:15 PM
  7. Replies: 0
    Last Post: 08-16-2006, 12:15 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1