+ Reply to Thread
Results 1 to 2 of 2

URGENT - How to match values in two columns then perform an action

  1. #1
    Registered User
    Join Date
    03-30-2014
    Location
    Australia
    MS-Off Ver
    Excel 2003 & 10
    Posts
    30

    URGENT - How to match values in two columns then perform an action

    Hi all,

    Sorry I putting a presentation together and require some much needed assistance


    I have a range of prices in column B - a lot of them are duplicates. I need to match the value in column A of sheet5. if they match, then I would like to determine if the the values in column G are outliers or Sample.xlsxnot. The average & standard deviation are next to the code in sheet5. The below formula works for the first cell but errors thereafter;

    IF(Sheet1$B$1:$B$6=Sheet5!A2,IF(OR(Sheet1!G3<Sheet5!B2-4*Sheet5!B2,Sheet5!G3>Sheet5!B2+4*Sheet5!C2),"outlier?","OK"))


    I have attached a spreadsheet for your reference.

    Thanks you very much!

  2. #2
    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,946

    Re: URGENT - How to match values in two columns then perform an action

    Try this ARRAY formula, copied down...
    =IFERROR(INDEX(Sheet1!$H$1:$H$14,MATCH(Sheet5!A2&"outlier",Sheet1!$B$1:$B$14&Sheet1!$H$1:$H$14,0)),"ok")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    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. [SOLVED] How to perform action if time is between > and <...
    By JONBOY666 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-23-2013, 02:20 PM
  2. If this = this, then perform this action
    By 00Able in forum Excel General
    Replies: 8
    Last Post: 11-21-2010, 03:52 PM
  3. Perform action if filter is used
    By scifo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-13-2010, 07:15 AM
  4. How to 'Click and then perform action'
    By chris100 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 08-02-2005, 09:57 AM
  5. How to perform action in all worksheets
    By Sethaholic in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-11-2005, 02:44 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