+ Reply to Thread
Results 1 to 3 of 3

Looking for a combination formula with certain critera

  1. #1
    Registered User
    Join Date
    03-28-2017
    Location
    New York, New York
    MS-Off Ver
    2010
    Posts
    20

    Looking for a combination formula with certain critera

    Hi,

    I want a formula to look for any row that has the same Company name and has New York as a Location, and output the description associated with New York.
    Basically, I want to know how to get to the output shown in Column D

    Data.png

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Looking for a combination formula with certain critera

    Hi - paste this ARRAY FORMULA in D2 and copy down. You'll need to adjust the ranges:

    =IFERROR(INDEX($B$2:$B$16,MATCH(1,($A$2:$A$16="New York")*($C$2:$C$16=$C2),0)),"")

    Row\Col
    A
    B
    C
    D
    1
    location description company output
    2
    New York OK2 aaa OK2
    3
    Detroit OK3 bbb OK11
    4
    Detroit OK4 ccc OK8
    5
    Detroit OK5 ddd OK13
    6
    Detroit OK6 aaa OK2
    7
    Detroit OK7 bbb OK11
    8
    New York OK8 ccc OK8
    9
    Detroit OK9 ddd OK13
    10
    Detroit OK10 aaa OK2
    11
    New York OK11 bbb OK11
    12
    Detroit OK12 ccc OK8
    13
    New York OK13 ddd OK13
    14
    Detroit OK14 aaa OK2
    15
    Detroit OK15 bbb OK11
    16
    Detroit OK16 ccc OK8


    *You must press CTRL+SHIFT+ENTER to confirm entry of an ARRAY FORMULA in the Formula Bar.
    When copying the formula to other cells, make sure the copied cell is not part of the Paste Area.


    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
    Last edited by leelnich; 06-16-2017 at 05:49 PM.

  3. #3
    Registered User
    Join Date
    03-28-2017
    Location
    New York, New York
    MS-Off Ver
    2010
    Posts
    20

    Re: Looking for a combination formula with certain critera

    leelnich,

    Thank you. The formula worked perfectly.

+ 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. Formula for retuning a value of 4 critera
    By reddaze in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-03-2014, 08:28 AM
  2. [SOLVED] how do i copy rows using critera in a formula?
    By Adrian M in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 07:05 PM
  3. [SOLVED] how do i copy rows using critera in a formula?
    By Adrian M in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 09:05 AM
  4. [SOLVED] how do i copy rows using critera in a formula?
    By tim_302ford in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07:05 AM
  5. [SOLVED] how do i copy rows using critera in a formula?
    By Adrian M in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 06:05 AM
  6. [SOLVED] how do i copy rows using critera in a formula?
    By Adrian M in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  7. [SOLVED] how do i copy rows using critera in a formula?
    By tim_302ford in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  8. [SOLVED] how do i copy rows using critera in a formula?
    By tim_302ford in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-19-2005, 03:05 AM

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