+ Reply to Thread
Results 1 to 8 of 8

First instance based on information from a second table

  1. #1
    Registered User
    Join Date
    07-20-2010
    Location
    Wisconsin
    MS-Off Ver
    Office 365
    Posts
    24

    First instance based on information from a second table

    Greets!

    I apologize for asking something that undoubtedly has been asked before. I can't come up with the right phraseology to ask the right question to get the right answer. I'm sure this will be an easy one for you.

    In the attached sheet, I'm looking for a formula that will give me the date of the first instance (I3:I12) from E3:E22. The info in B3:B22 is in another sheet in the real workbook. I need to do this without adding a helper column.

    Thanks in advance, I appreciate having Excel Forum as a place to get answers.
    Attached Files Attached Files

  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: First instance based on information from a second table

    Unable to understand how you arrive the desired result


    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
    07-20-2010
    Location
    Wisconsin
    MS-Off Ver
    Office 365
    Posts
    24

    Re: First instance based on information from a second table

    To obtain the result in I3, I need a formula that gives me the date for the first time an Alabama city shows up in E3:F22. The info in B3:C22 shows which state each city is in. For Alabama, two cities are listed, Birmingham and Mobile. So I want the result to be the first instance of Birmingham or Mobile. In E3:F22, Mobile shows up first on 6/2/2018.

    California would be Sacramento or Salinas. Sacramento shows up on 1/10/2018, which would be the first instance.

    In my actual workbook, I'm not dealing with cities, states or dates. If I can get a formula that works for this example spreadsheet, I can make it work for what I need.

    Thanks.

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: First instance based on information from a second table

    I don't think another explanation is what is needed. I believe we can see what you are clearly saying, it's simply, how do you expect a formula to know that Sacramento and Salinas are associated to California with creating an association.

    FWIW, I had the same impression when I first saw this post yesterday, but since I had a feeling it would take a crazy formula, I opted just to watch this post.

    Anyway, you said, "without the aide of a helper cell", but sometimes that's exactly what is required.

    D3:D22 >> =INDEX(C:C,MATCH(E3,B:B,0))

    I3:I12 >> =INDEX(F:F,MATCH(H3,D:D,0))

    In total, there are 20 State/City combinations. Not sure that will be easy to do thru a formula. Helper cell gets the job done in no time.

    Note: Also, the number of states your currently have is 10. I'm not great with geography, but seems like I learned back in grade school there are a few more states than 10. If the list of states should happen to grow, then so do the State/City combinations. With this in mind, it doesn't seem like you can get away from a helper column too easily.

    Of course, I could be completely wrong, but being you posted this over 24 hours ago with little traction, it's quite possible I'm not too far off.
    HTH
    Regards, Jeff

  5. #5
    Registered User
    Join Date
    07-20-2010
    Location
    Wisconsin
    MS-Off Ver
    Office 365
    Posts
    24

    Re: First instance based on information from a second table

    Thank you very much for your help ... even if it is to tell me what I want to happen can't be done.

    I thought that it would be simple for Excel to take H3, find all the matching cities from B3:C22, and then give me the first instance from E3:F22.

    OK, I'll just have to accept the fact that this isn't going to be an easy addition to the workbook. I will probably have to do some restructuring.

    Thanks again.

  6. #6
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: First instance based on information from a second table

    Are you allowed to sort Columns E:F so that the cities in E match up with the cities in column B?
    <----- If you are happy with your solution please click on the "* Add Reputation" as a way to say thank you.

  7. #7
    Registered User
    Join Date
    07-20-2010
    Location
    Wisconsin
    MS-Off Ver
    Office 365
    Posts
    24

    Re: First instance based on information from a second table

    Negative. That would make things too easy.

  8. #8
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: First instance based on information from a second table

    Sorry to give bad news, but creating the connection is the problem.

+ 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] Userform: Add information into table based on row and column
    By Kyhosa in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-08-2019, 09:43 AM
  2. Move or delete cell information based on reference table
    By JW90 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-12-2016, 02:06 AM
  3. Setup a Query in a Table Based on Information in that Table
    By lwflip in forum Access Tables & Databases
    Replies: 1
    Last Post: 07-07-2015, 10:48 AM
  4. Replies: 3
    Last Post: 10-31-2013, 04:23 PM
  5. table automatically populates based on information in other tabs
    By ea223 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-27-2013, 10:10 PM
  6. Replies: 1
    Last Post: 01-13-2013, 06:04 PM
  7. [SOLVED] Calendar based on varying information/ Pivot Table General
    By Neil in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-22-2005, 02:06 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