+ Reply to Thread
Results 1 to 7 of 7

How to extract text data from one cell based on the date on another cell?

  1. #1
    Registered User
    Join Date
    09-30-2013
    Location
    Delhi
    MS-Off Ver
    Excel 2010
    Posts
    3

    How to extract text data from one cell based on the date on another cell?

    Hi all
    Please help me to get a formula for extracting text data from one cell based on the date on another cell.

    Capture.JPG

    Activities in Column C should be extracted to another Cell Based on the date matches.

    Regards

    N.Prabhu
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: How to extract text data from one cell based on the date on another cell?

    welcome to the forum, Prabhu. try this array formula in B14:
    =IFERROR(INDEX($C$3:$C$11,SMALL(IF($B$3:$B$11=$B$13,ROW($C$3:$C$11)),ROWS(B$14:B14))-ROW($C$3)+1),"")

    ...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.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to extract text data from one cell based on the date on another cell?

    Hi

    In B14 and copy down use this ARRAY formula.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    -- Array(CSE) { }, formulae are confirmed with Control+Shift+Enter.
    Not just Enter.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    09-30-2013
    Location
    Delhi
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: How to extract text data from one cell based on the date on another cell?

    Quote Originally Posted by benishiryo View Post
    welcome to the forum, Prabhu. try this array formula in B14:
    =IFERROR(INDEX($C$3:$C$11,SMALL(IF($B$3:$B$11=$B$13,ROW($C$3:$C$11)),ROWS(B$14:B14))-ROW($C$3)+1),"")

    ...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.
    Thanks a lot

  5. #5
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: How to extract text data from one cell based on the date on another cell?

    just for intermezo (extract without array formula)

    at B14
    =IF(ROW(1:1)>COUNTIF($B$3:$B$11,$B$13),"",INDEX(INDIRECT("C"&MATCH($B$13,$B$1:$B$11,0)+ROW(1:1)-1&":C11"),MATCH($B$13,INDIRECT("B"&MATCH($B$13,$B$1:$B$11,0)+ROW(1:1)-1&":B11"),0)))

    copy down

    copy down

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: How to extract text data from one cell based on the date on another cell?

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  7. #7
    Registered User
    Join Date
    09-30-2013
    Location
    Delhi
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: How to extract text data from one cell based on the date on another cell?

    Thanks for those who helped me

+ 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] Conditional Formatting based on a Date Cell and a text Cell.
    By Clark85 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-09-2013, 07:53 AM
  2. Extract multiple data from a text found in a cell
    By nagsharan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-16-2013, 03:36 PM
  3. Replies: 12
    Last Post: 09-15-2012, 10:20 PM
  4. Replies: 3
    Last Post: 07-25-2012, 07:54 AM
  5. How to extract numbers or a date from a text cell
    By TabishDilshad in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-20-2012, 06:43 AM

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