+ Reply to Thread
Results 1 to 4 of 4

an odd question-cant figure out a formula

  1. #1
    Registered User
    Join Date
    05-09-2006
    Posts
    6

    an odd question-cant figure out a formula

    Hello everyone,

    Lets suppose I have a series of numbers in column A that correlate to a sentence (in colum B) such as below (in actuality I have 64, for the sake of this example I have 3):

    1148 Today is a sunny day
    1189 Tommorow will be rainy
    1194 Yesterday was windy

    Now, I would simply like cell (say) C5 to display "Today is a sunny day" if cell B6 displays the corresponding code (1148).

    I have worked on this all day and have come up empty, I would appreciate any ideas. Thanks so much

  2. #2
    Harlan Grove
    Guest

    Re: an odd question-cant figure out a formula

    mikeyVo wrote...
    >Lets suppose I have a series of numbers in column A that correlate to a
    >sentence (in colum B) such as below (in actuality I have 64, for the
    >sake of this example I have 3):
    >
    >1148 Today is a sunny day
    >1189 Tommorow will be rainy
    >1194 Yesterday was windy
    >
    >Now, I would simply like cell (say) C5 to display "Today is a sunny
    >day" if cell B6 displays the corresponding code (1148).

    ....

    Have you considered VLOOKUP?

    C5:
    =VLOOKUP(B6,A1:B3,2)


  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    Try something like this.....

    With your table of Codes/Phrases in A10:B100

    B6: (a code value )
    C5: =VLOOKUP(B6,A10:B100,2,0)

    Does that help?

    Regards,
    Ron

  4. #4
    Registered User
    Join Date
    05-09-2006
    Posts
    6
    wow, that did it! thanks very much

+ 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.6.0 RC 1