+ Reply to Thread
Results 1 to 3 of 3

Basic formula to create cell contents based on another cell

  1. #1
    Registered User
    Join Date
    12-14-2018
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    1

    Basic formula to create cell contents based on another cell

    Hello

    I want know a formula, where it should be like below:
    If the cell contains "ACT" or "TERM" or "LOA" then it should change to "A" or "T" or "L"
    If the cell contains "-", then it will change to "NULL"

    Please help.
    Last edited by AliGW; 12-15-2018 at 02:21 AM.

  2. #2
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,474

    Re: Basic formula

    Multiple ways of doing this. You can make a table and do a simple vlookup formula or you could use this formula assuming ACT TERM or LOA are in cell A1.
    Also this is assuming that "-" is a hyphen and not 0.

    =IF(A1="-","NULL",LEFT(A1,1))

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,426

    Re: Basic formula to create cell contents based on another cell

    Welcome to the forum!

    Please note that your thread title was inadequate so I have changed it for you this time. In future please provide thread titles that tell us something of the problem you are trying to solve.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. Basic formula i need
    By max2598 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-15-2018, 08:57 AM
  2. Using a cell containing a VLookup Formula in a Basic Multiplication Formula
    By slampert in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-11-2015, 09:20 PM
  3. I need help with a basic IF formula
    By bgpzone in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-16-2015, 06:51 AM
  4. [SOLVED] Basic 'If' Formula
    By Jason Kaid in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-24-2014, 01:47 PM
  5. Replies: 1
    Last Post: 03-04-2012, 12:03 AM
  6. Basic if formula
    By koba in forum Excel General
    Replies: 1
    Last Post: 03-13-2006, 06:55 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