+ Reply to Thread
Results 1 to 4 of 4

IF excel formula help

  1. #1
    Registered User
    Join Date
    12-28-2015
    Location
    United States
    MS-Off Ver
    MS Office 2013
    Posts
    1

    Question IF excel formula help

    I'm trying to figure out a formula that displays specific text based on another cell value. Currently I have two values, however I need to add a third and I'm not sure how.

    The current formula is....
    =IF(OR(C2="B802",C2="B803",C2="B517",C2="B517-1",C2="B521",C2="B804",C2="B805"),"Country2","Country1")

    - Column C contains the product number
    - I use this formula to display the Country of Origin for the product
    - I need it to default to Country1, unless column C contains a specific product number
    - For instance B802 is Country2, B517 is Country1
    - However, I'm adding new product numbers with new countries, eg B622 and B623 will be Country3

    I'm not sure if I explained that clearly, if you have any questions, I'm here to answer them. Thank you!!!!!

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: IF excel formula help

    Instead of using a gigantic IF formula create a 2 column table and use a lookup formula.

    See this:

    http://contextures.com/xlFunctions02.html
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Valued Forum Contributor
    Join Date
    12-28-2014
    Location
    NSW, Australia
    MS-Off Ver
    MS365
    Posts
    604

    Re: IF excel formula help

    Sorry, wrong thread

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: IF excel formula help

    shadowfire welcome to the forum

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem - not what you think the answer might be. (think google search terms?). Once you have done this please send me a PM and I will remove this request. (Also, include a link to your thread - copy from the address bar)

    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?

    To change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (note: this change is not optional )
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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: 10
    Last Post: 12-16-2015, 03:16 PM
  2. Replies: 2
    Last Post: 03-21-2014, 11:43 AM
  3. Macro: Applying formula to multiple cells in excel (formula editing)
    By city in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-27-2012, 06:41 AM
  4. Replies: 0
    Last Post: 03-19-2012, 07:32 PM
  5. Replies: 1
    Last Post: 03-04-2012, 12:03 AM
  6. [SOLVED] Excel 2002 formula displayed not value formula option not checked
    By Dean in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-28-2006, 10:35 AM
  7. [SOLVED] i edit a formula (excel) then it displays formula not answer
    By caiman in forum Excel General
    Replies: 2
    Last Post: 09-08-2005, 10:05 PM

Tags for this Thread

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