+ Reply to Thread
Results 1 to 3 of 3

Thread: Help with a Formula that is an "IF" "THEN" and pulls from 1st 2 # of another column

  1. #1
    Registered User
    Join Date
    09-22-2009
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Red face Help with a Formula that is an "IF" "THEN" and pulls from 1st 2 # of another column

    Does anyone know how i can set this up? It needs to pull from the 1st two digit of a four digit # in one column which determines its value.

    Here's what i need it to do:

    Column A - Each cell has a 4 digit #'s that start with
    eigher 11,12,13,14,15,16,17 or 18.

    Column B - Should calculate that IF column A begins with 11 then B=1,
    if A begins with 12 then B=2, 13 then B=3, 14 then B=4, 15
    then B=5, etc....

    (Column A are room #'s in the hotel I work at. For example room #1234,#1458,#1633 or #1801. Column B is the floor the room is on. Room 1234 is on the 2nd floor, 1458 on the 4th floor and so on )

    Any help would be great! I've been trying for days to figure it out!

    Many thanks,
    Kattia

  2. #2
    Forum Guru
    Join Date
    10-28-2008
    Location
    Not here anymore
    MS-Off Ver
    irrelevant
    Posts
    10,151

    Re: Help with a Formula that is an "IF" "THEN" and pulls from 1st 2 # of another colu

    how about in B1

    =MID(A1,2,1)

    copy down

  3. #3
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007, 2010
    Posts
    25,777

    Re: Help with a Formula that is an "IF" "THEN" and pulls from 1st 2 # of another colu

    Welcome to the forum, Kattiasd.

    Please take a few minutes to read the forum rules, and then amend your thread title accordingly.

    Thanks.
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0