+ Reply to Thread
Results 1 to 6 of 6

Formula to return data in two columns

  1. #1
    Registered User
    Join Date
    01-06-2012
    Location
    SF Bay Area, USA
    MS-Off Ver
    Excel 2007
    Posts
    22

    Formula to return data in two columns

    see attached example
    There are 4 types of events.
    I have 4 columns } EVENT TYPE | DATE OF EVENT | LOCATION OF EVENT | # OF DAYS SINCE LAST EVENT
    I will continually add events to the list. I want a dashboard to show the number of days since each type of event and the location where the event occurred.
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,888

    Re: Formula to return data in two columns

    Here is your formula for days. In G4 =DATEDIF(MAXIFS($B$2:$B$10,$A$2:$A$10,G3),TODAY(),"d") and copy over. Still working on the second half of your issue.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    01-11-2021
    Location
    CANADA
    MS-Off Ver
    Excel 2007, Office 2019
    Posts
    31

    Re: Formula to return data in two columns

    G4: =LOOKUP(2,1/($A$2:$A$10=G$3),$D$2:$D$10)
    G5: =LOOKUP(2,1/($A$2:$A$10=G$3),$C$2:$C$10)

    Select G4 & G5 and copy across

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Formula to return data in two columns

    ARRY formulas are used.
    In G4

    =TODAY()-INDEX($B$2:$B$10,MATCH(2,1/($A$2:$A$10=G$3),1))

    In G5

    =INDEX($C$2:$C$10,MATCH(2,1/($A$2:$A$10=G$3),1))

    Then copy across to last column.

    To enter ARRAY formula
    Copy and paste the formula in cell
    Press F2
    Press Ctrl+Shift+Enter together
    Excel covers the formula with {}.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 03-20-2021 at 12:02 AM.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  5. #5
    Registered User
    Join Date
    01-06-2012
    Location
    SF Bay Area, USA
    MS-Off Ver
    Excel 2007
    Posts
    22

    Red face Re: Formula to return data in two columns

    THANK YOU ALL!!

    It appears all of these formulas work. I appreciate all of your help.

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,888

    Re: Formula to return data in two columns

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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] Formula to look up 2 columns of data and return data from another Worksheet
    By ads111ads in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-01-2021, 11:28 AM
  2. [SOLVED] Formula to Return Last Cell With Data in a Series of Columns
    By spacle in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-24-2020, 05:20 PM
  3. [SOLVED] Formula needed to return data over a series of columns
    By dixiedimmock in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-17-2017, 10:03 AM
  4. [SOLVED] Formula to return data from multiple columns
    By excelhelpguy123 in forum Excel General
    Replies: 5
    Last Post: 06-06-2017, 04:09 PM
  5. [SOLVED] Formula to return mulitple columns of data into one cell
    By Lizzie123 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-13-2013, 06:54 PM
  6. Replies: 1
    Last Post: 12-07-2009, 07:02 PM
  7. return multiple columns/rows of data in formula?
    By darksoda in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-01-2007, 09:19 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