+ Reply to Thread
Results 1 to 6 of 6

Check cell for value, if match then "number", If no match then show actual value in cell

  1. #1
    Registered User
    Join Date
    04-13-2011
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    14

    Question Check cell for value, if match then "number", If no match then show actual value in cell

    Hi,

    On our store product upload spreadsheet we need to reflect "product quantity" that shows on our distributors export file, we currently use the distributors spreadsheet as our database to create the file needed for our store import.

    I need help with a formula that checks a cell for a value then returns a value.

    The values we need are to match ">5" and return "5" but if no match then return the actual value of that cell whether it be 1,2,3 or 4.

    Thanks

  2. #2
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Check cell for value, if match then "number", If no match then show actual value in ce

    Try this


    =if(a1>5,5,a1)
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Check cell for value, if match then "number", If no match then show actual value in ce

    Hi

    Do you mean?

    =if(a1>5,5,a1)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Check cell for value, if match then "number", If no match then show actual value in ce

    Or

    =MIN(A1,5)

  5. #5
    Registered User
    Join Date
    10-24-2012
    Location
    CYPRUS
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Check cell for value, if match then "number", If no match then show actual value in ce

    If the number in "Sheet1 L2" matches with the number "Sheet2 C5" the formula should write the number in "Sheet2 G5", or
    If the number in "Sheet1 L10" matches with the number "Sheet2 C40" the formula should write the number in "Sheet2 G40", or
    If the number in "Sheet1 L15" matches with the number "Sheet2 C50" the formula should write the number in "Sheet2 G50".

  6. #6
    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
    53,050

    Re: Check cell for value, if match then "number", If no match then show actual value in ce

    M_KANIK...
    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.
    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)

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