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.
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.
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
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
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
thanks hemesh, what if you wanted to return the rig name and the date?
Saarang,
the date 1 cell to the right of the cell that COM241 is in
thanks
Try this to get the dates :
Formula:
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..
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)
how about returning the rig name and the date?
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.
Hi,
For Rig Name, use :
Formula:
Please Login or Register to view this content.
For Date, use :
Formula:
Please Login or Register to view this content.
Refer attached file..
your very clever,
what if the rig name and the date had to be in the same cell, without concatenating
can you show example Ashtangi and To whom you are responding?
i reply to everyone
desired outcome would be in a single cell
RIG Arrives DATE
eg.
SAV 064 Arrives Monday, 5 May 2014
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.
hi hemesh, if it cant find the COM241 number for example it says "N?A" can this be replaced with TEXT??
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.
last one,
if the formula is on another sheet and wants to look for the data on a sheet called "Rigs"?
Try this Formula :
Formula:
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
try below on another sheet array entered (Control+Shift+ENter)
Formula:
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
Last edited by hemesh; 05-05-2014 at 03:56 AM.
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.
yes thank you kindly, that became quite complex.
is your issue resolved?
yes i cant see how to close it though?
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks