+ Reply to Thread
Results 1 to 3 of 3

If cell contains one of four text values, then input one of three numbers

  1. #1
    Registered User
    Join Date
    01-29-2016
    Location
    UK
    MS-Off Ver
    Mac
    Posts
    5

    If cell contains one of four text values, then input one of three numbers

    Hi all,

    I'm trying to create a formula based on the following scenario.

    If cell B4 contains the word None, then input the number 0 into C4
    Or If cell B4 contains the word Foundation, then input the number 5 into C4
    Or If cell B4 contains the word Intermediate, then input the number 10 into C4
    Or If cell B4 contains the word Advanced, then input the number 15 into C4

    Thanks in advance for your help!

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,366

    Re: If cell contains one of four text values, then input one of three numbers

    Only A single word?

    Use =VLOOKUP(B4, Table, 2,0)



    Table is Named range say in columns X and Y

    X contains word, y corresponding value

    Please Login or Register  to view this content.

    or

    =VLOOKUP(B4, $X$1:$Y$4, 2,0)

    Or

    =IF(B4="None",0,IF(B4="Foundation",5,IF(B4="Intermediate",10,15)))
    Last edited by JohnTopley; 05-16-2016 at 07:14 AM.

  3. #3
    Registered User
    Join Date
    01-29-2016
    Location
    UK
    MS-Off Ver
    Mac
    Posts
    5

    Re: If cell contains one of four text values, then input one of three numbers

    Perfect, thank you!

+ 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: 3
    Last Post: 02-03-2016, 01:53 PM
  2. Replies: 1
    Last Post: 05-14-2015, 09:27 AM
  3. Replies: 4
    Last Post: 07-21-2014, 10:33 AM
  4. Have Excel Look at Three Values and Input Text Of One of Them
    By griffin555 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-21-2013, 03:04 PM
  5. [SOLVED] I can not input numbers in a cell.
    By bablubg in forum Excel General
    Replies: 1
    Last Post: 10-22-2012, 02:49 AM
  6. Inputting values into an Array as Text from Text Input mode
    By nyum in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-04-2010, 08:08 AM
  7. compare cell values numbers from text
    By rtames in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-26-2009, 07:44 AM

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