+ Reply to Thread
Results 1 to 7 of 7

changing value if two criterias are met

  1. #1
    Registered User
    Join Date
    08-13-2012
    Location
    nsw,australia
    MS-Off Ver
    Excel 2013
    Posts
    11

    changing value if two criterias are met

    macro required to change value in cell if criteria is met
    I have a macro that filters two crierias, the text in column "a" displays "local" and column "i" shows whether shipped to india or within Australia.
    If shipped to "india" i would like the "local" to be changed to "Export" in "column A" Though the the amount of shipments fluctuates between reports.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: changing value if two criterias are met

    Please attach a sample workbook with enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

    Note: Please don't attach documents containing confidential data like (address, telephone, ID#s, etc.).


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    08-13-2012
    Location
    nsw,australia
    MS-Off Ver
    Excel 2013
    Posts
    11

    Re: changing value if two criterias are met

    Please see attachment
    Attached Files Attached Files

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: changing value if two criterias are met

    Try the below code....

    Please Login or Register  to view this content.
    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button

  5. #5
    Registered User
    Join Date
    08-13-2012
    Location
    nsw,australia
    MS-Off Ver
    Excel 2013
    Posts
    11

    Re: changing value if two criterias are met

    thank you how could i alter this to work with a name "company name (shanghai)"

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: changing value if two criterias are met

    In the suggested code replace the text India to your desired search value.

  7. #7
    Registered User
    Join Date
    08-13-2012
    Location
    nsw,australia
    MS-Off Ver
    Excel 2013
    Posts
    11

    Re: changing value if two criterias are met

    Thank you works great!!

+ 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. Sum across 4 criterias
    By msls09 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-05-2013, 08:33 AM
  2. [SOLVED] Look UP using 4 criterias
    By kadayadi in forum Excel General
    Replies: 16
    Last Post: 11-10-2012, 03:18 AM
  3. [SOLVED] Sum something up with two criterias
    By jleung07 in forum Excel General
    Replies: 3
    Last Post: 06-26-2012, 11:37 PM
  4. Criterias for IF Statement
    By captedgar in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-13-2010, 02:14 PM
  5. Look up a value for two criterias
    By Chandrani in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-16-2009, 04:38 PM

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