+ Reply to Thread
Results 1 to 6 of 6

If A1 = 1, Populate B1 "Monkey", If A1 = 2, Populate B1 "Bird"

  1. #1
    Registered User
    Join Date
    11-12-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    2

    Red face If A1 = 1, Populate B1 "Monkey", If A1 = 2, Populate B1 "Bird"

    Need help with an excel forumala, trying to avoid macros.

    I would be using this formula on cell B1.

    Formula required example: If A1 = 1, Populate B1 "Monkey", If A1 = 2, Populate B1 "Bird", If A1 = 3, Populate B1 "Dog", If A1 = 4, Populate B1 "Cat".

    Thanks in advance!

    Steve.
    Last edited by steventhompson; 11-12-2012 at 05:43 PM.

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Simple Fomula required from the advanced.

    You could put this in B1, but an array with values, and results would be better:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    -Moo

  3. #3
    Registered User
    Join Date
    10-02-2012
    Location
    Baku
    MS-Off Ver
    Excel 2010
    Posts
    273

    Re: Simple Fomula required from the advanced.

    1st alt: =CHOOSE(A1,"Monkey","Bird","Dog","Cat")
    2nd alt: =IF(A1=1,"Monkey",IF(A1=2,"Bird",IF(A1=3,"Dog",IF(A1=4,"Cat"))))

  4. #4
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Simple Fomula required from the advanced.

    If you had a long list of numbers to match with animals or a long list of anything else, you can use a lookup table like in my example spreadsheet attached. Then use a VLOOKUP formula like this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    -Moo
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-12-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Simple Fomula required from the advanced.

    Ty sir for your formula, works perfectly.

  6. #6
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: If A1 = 1, Populate B1 "Monkey", If A1 = 2, Populate B1 "Bird"

    You're welcome.

+ 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