+ Reply to Thread
Results 1 to 4 of 4

If a cell has certain text another cell will have a certain numeric value

  1. #1
    Registered User
    Join Date
    03-25-2020
    Location
    Poole, England
    MS-Off Ver
    Office 16
    Posts
    1

    If a cell has certain text another cell will have a certain numeric value

    I want to create what I think is an IF formula, so that if a cell has certain text then another cell will have a certain numeric value.

    For Example if B6 contains 'MP35' then C6 will contain '125000' or if B6 contains '17-7PH' then C6 will contain '137000' and so on

    can anyone help with this?
    Last edited by jeffreybrown; 03-25-2020 at 01:05 PM. Reason: Updated thread title

  2. #2
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,060

    Re: IF Formula Help

    C6=if(b6="mp35",125000,if(b6="17-7ph",137000,""))
    Last edited by josephteh; 03-25-2020 at 10:00 AM.

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: If a cell has certain text another cell will have a certain numeric value

    Administrative Note:

    Hi Godderz14 & Welcome to the forum.

    We would love to help you with your query; however, the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly.

    To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    Note: I've done this for you, but please give a little more thought about a better title the next time.
    HTH
    Regards, Jeff

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: If a cell has certain text another cell will have a certain numeric value

    Quote Originally Posted by Godderz14 View Post
    and so on
    Hi Godderz14,

    When you say, "and so on", that makes me think you will have more than just mp35 and 17-7ph.

    If that is the case, you may want to create a lookup table.

    https://www.contextures.com/xlFunctions02.html

+ 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. Replies: 2
    Last Post: 03-01-2016, 08:01 PM
  2. Extract numeric value from a cell where Text and Numeric combined in a cell
    By Chandrahaas in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 10-07-2014, 10:58 AM
  3. [SOLVED] If cell has a numeric value then text
    By HaroonSid in forum Excel General
    Replies: 2
    Last Post: 04-15-2014, 03:39 AM
  4. [SOLVED] Compare a text cell with a numeric cell and output a text string
    By ids in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-25-2014, 07:39 AM
  5. Replies: 7
    Last Post: 02-25-2014, 02:00 AM
  6. Replies: 1
    Last Post: 02-10-2013, 01:23 PM
  7. format a text cell dependant on value of numeric cell
    By Glio in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-09-2013, 11:14 AM

Tags for this Thread

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