+ Reply to Thread
Results 1 to 24 of 24

Find Value in Array and return value in cell to right

  1. #1
    Registered User
    Join Date
    05-03-2014
    Location
    brisbane
    MS-Off Ver
    Excel 2013
    Posts
    15

    Find Value in Array and return value in cell to right

    Surley this is easy but i cant figure it out.

    i want to search for A16 in B2:I10 and return the date 1 cell to the right.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Find Value in Array and return value in cell to right

    Hi,

    There are 3 date columns found in your sheet, which one do you want to return?

    If my assistance has helped, there is a reputation icon * on the left hand corner below the post - you can show your appreciation to the user who has helped in resolving your requirement.

    If your requirement has been solved please mark your thread as Solved.
    In the menu bar above the very first post, select Thread Tools, then select "Mark this thread as Solved".

    Kindly use [FORMULA] or [CODE] tags when posting your code.

    Regards,
    Sarang

  3. #3
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Find Value in Array and return value in cell to right

    copy paste below in then hold control and shift together and then hit enter to make it array formula
    =INDIRECT(TEXT(MAX(IFERROR(IF(SEARCH($A16,$A$2:$I$9)>=1,ROW($A$2:$I$9)*1000+COLUMN($A$2:$I$9)+1),0)),"R000C000"),0)

    format b16 in date format.

    this will work as long as you don't have duplicate current site
    Attached Files Attached Files
    Last edited by hemesh; 05-05-2014 at 01:59 AM.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  4. #4
    Registered User
    Join Date
    05-03-2014
    Location
    brisbane
    MS-Off Ver
    Excel 2013
    Posts
    15

    Re: Find Value in Array and return value in cell to right

    thanks hemesh, what if you wanted to return the rig name and the date?

  5. #5
    Registered User
    Join Date
    05-03-2014
    Location
    brisbane
    MS-Off Ver
    Excel 2013
    Posts
    15

    Re: Find Value in Array and return value in cell to right

    Saarang,

    the date 1 cell to the right of the cell that COM241 is in

    thanks

  6. #6
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Find Value in Array and return value in cell to right

    Try this to get the dates :

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

    This works in Excel 2003 too..
    Last edited by Saarang84; 05-05-2014 at 02:08 AM. Reason: Missed attachment..

  7. #7
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Find Value in Array and return value in cell to right

    In C16 copy paste below then hold control and shift together then hit enter
    =INDIRECT(TEXT(MAX(IFERROR(IF(SEARCH($A16,$A$2:$I$9)>=1,ROW($A$2:$I$9)*1000+COLUMN($A$2)),0)),"R000C000"),0)

  8. #8
    Registered User
    Join Date
    05-03-2014
    Location
    brisbane
    MS-Off Ver
    Excel 2013
    Posts
    15

    Re: Find Value in Array and return value in cell to right

    how about returning the rig name and the date?

  9. #9
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Find Value in Array and return value in cell to right

    Above formula will get you the rig name Or you want both in same cell

    if you want both in same cell then copy paste below in c16 then hold control and shift together then hit enter
    =INDIRECT(TEXT(MAX(IFERROR(IF(SEARCH($A16,$A$2:$I$9)>=1,ROW($A$2:$I$9)*1000+COLUMN($A$2)),0)),"R000C000"),0)&"-----"&TEXT(INDIRECT(TEXT(MAX(IFERROR(IF(SEARCH($A16,$A$2:$I$9)>=1,ROW($A$2:$I$9)*1000+COLUMN($A$2:$I$9)+1),0)),"R000C000"),0),"DDDD, MMMM,DD,YYYY")


    Hope this helps
    Last edited by hemesh; 05-05-2014 at 02:20 AM.

  10. #10
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Find Value in Array and return value in cell to right

    Hi,

    For Rig Name, use :
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    For Date, use :
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Refer attached file..

  11. #11
    Registered User
    Join Date
    05-03-2014
    Location
    brisbane
    MS-Off Ver
    Excel 2013
    Posts
    15

    Re: Find Value in Array and return value in cell to right

    your very clever,

    what if the rig name and the date had to be in the same cell, without concatenating

  12. #12
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Find Value in Array and return value in cell to right

    can you show example Ashtangi and To whom you are responding?

  13. #13
    Registered User
    Join Date
    05-03-2014
    Location
    brisbane
    MS-Off Ver
    Excel 2013
    Posts
    15

    Re: Find Value in Array and return value in cell to right

    i reply to everyone

    desired outcome would be in a single cell

    RIG Arrives DATE

    eg.

    SAV 064 Arrives Monday, 5 May 2014

  14. #14
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Find Value in Array and return value in cell to right

    try below hold control and shift then hit enter
    =INDIRECT(TEXT(MAX(IFERROR(IF(SEARCH($A16,$A$2:$I$9)>=1,ROW($A$2:$I$9)*1000+COLUMN($A$2)),0)),"R000C000"),0)&" Arrives "&TEXT(INDIRECT(TEXT(MAX(IFERROR(IF(SEARCH($A16,$A$2:$I$9)>=1,ROW($A$2:$I$9)*1000+COLUMN($A$2:$I$9)+1),0)),"R000C000"),0),"DDDD, MMMM DD YYYY")
    Last edited by hemesh; 05-05-2014 at 02:33 AM.

  15. #15
    Registered User
    Join Date
    05-03-2014
    Location
    brisbane
    MS-Off Ver
    Excel 2013
    Posts
    15

    Re: Find Value in Array and return value in cell to right

    hi hemesh, if it cant find the COM241 number for example it says "N?A" can this be replaced with TEXT??

  16. #16
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Find Value in Array and return value in cell to right

    what sort of text ?

    Try below if search term is not available then it will Show "Search term not Available"
    =IFERROR(INDIRECT(TEXT(MAX(IFERROR(IF(SEARCH($A16,$A$2:$I$9)>=1,ROW($A$2:$I$9)*1000+COLUMN($A$2)),0)),"R000C000"),0)&" Arrives "&TEXT(INDIRECT(TEXT(MAX(IFERROR(IF(SEARCH($A16,$A$2:$I$9)>=1,ROW($A$2:$I$9)*1000+COLUMN($A$2:$I$9)+1),0)),"R000C000"),0),"DDDD, MMMM D YYYY"),"Search Term Not Avalible")

    Above formula is array entered. Change the Red Part to your desired Text.
    Last edited by hemesh; 05-05-2014 at 03:05 AM.

  17. #17
    Registered User
    Join Date
    05-03-2014
    Location
    brisbane
    MS-Off Ver
    Excel 2013
    Posts
    15

    Re: Find Value in Array and return value in cell to right

    last one,

    if the formula is on another sheet and wants to look for the data on a sheet called "Rigs"?

  18. #18
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Find Value in Array and return value in cell to right

    Try this Formula :

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

    In the above fomula,
    1. Change the Red Part to your desired Text
    2. This is an array formula. Confirm it by pressing Ctrl + Shift + Enter
    3. $A16 (in blue) is the input cell - change it accordingly
    4. $A$2:$I$9 is the range where the value searched for is available. As you say, this is what is available in the Rigs sheet

  19. #19
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Find Value in Array and return value in cell to right

    try below on another sheet array entered (Control+Shift+ENter)
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Blue part is the sheet name.

    Change the references as of your actual data. Try Above Formula in B16 in another sheet and in A16 write the site name

    Hope this solves your query
    Attached Files Attached Files
    Last edited by hemesh; 05-05-2014 at 03:56 AM.

  20. #20
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Find Value in Array and return value in cell to right

    If your issue is solved you can mark thread as solved.
    you could also use if construct instead of search as well
    Last edited by hemesh; 05-05-2014 at 03:07 PM.

  21. #21
    Registered User
    Join Date
    05-03-2014
    Location
    brisbane
    MS-Off Ver
    Excel 2013
    Posts
    15

    Re: Find Value in Array and return value in cell to right

    yes thank you kindly, that became quite complex.

  22. #22
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Find Value in Array and return value in cell to right

    is your issue resolved?

  23. #23
    Registered User
    Join Date
    05-03-2014
    Location
    brisbane
    MS-Off Ver
    Excel 2013
    Posts
    15

    Re: Find Value in Array and return value in cell to right

    yes i cant see how to close it though?

  24. #24
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Find Value in Array and return value in cell to right

    go to thread tools then select as solved or Read signature below my post or Read Forum rules.
    Last edited by hemesh; 05-05-2014 at 05:47 PM.

+ 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. Find Cells in Array and Return Value Next to It
    By RNeel55 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-29-2013, 01:45 AM
  2. [SOLVED] Find Value in array, and return what is on the cell.
    By flakis05 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-08-2013, 12:27 AM
  3. Find text in array & return adjacent cell value
    By econbizer in forum Excel General
    Replies: 13
    Last Post: 10-13-2012, 01:26 AM
  4. Find a value in an array and return multiple values in an adjacent array
    By tonbra in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2012, 08:35 PM
  5. Find cell in array, return value of cell next to it
    By ryanfrank in forum Excel General
    Replies: 9
    Last Post: 10-26-2009, 04:50 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