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

1. ## 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".

Steve.

2. ## Re: Simple Fomula required from the advanced.

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

3. ## 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. ## 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:
`Please Login or Register  to view this content.`
-Moo

5. ## Re: Simple Fomula required from the advanced.

Ty sir for your formula, works perfectly.

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

You're welcome.

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

#### 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