I have the next table (the table has this format),
Excel table
I wanto to search for all the 9's on the row 3 and obtain all the dates on columns A to T for each 9.
In my example the result should be,
29-06-2016
30-06-2016
01-07-2016
02-07-2016
04-07-2016
05-07-2016
06-07-2016
07-07-2016
08-07-2016
09-07-2016
I've tried the index/small formula but the result is only the first date.
Can anyone help me?
The array formula in the first cell:
=INDEX($A$1:$T$1,SMALL(IF($A$3:$T$3=$V$3,COLUMN($A$3:$T$3)),ROW(1:1)))
Being an Array formula it needs to be confirmed with Ctrl-Shift-Enter instead of Enter when exiting edit mode. If done correctly then excel will put {} around the formula.
Related
I have contents of one excel cell as: for example
Bananas_05/05/2019
Oranges_07/06/2019
Oranges_08/05/2019
Apples_10/12/2018
Oranges_08/03/2019
I want, using formulas only (no VBA) to extract all the dates next to "Oranges_" So I want the output to be:
07/06/2019
08/05/2019
08/03/2019
My current formula can extract only 1 of them, not all
I have no idea what I can try
This is what I have:
DATEVALUE(MID(D20,FIND("Oranges_",D20)+LEN("Oranges_")+1,10))
This is only possible if one has TEXTJOIN() which was introduced with OFFICE 365 Excel.
If one has TEXTJOIN() then this array form will iterate each line and test then concatenate the dates.
=TEXTJOIN(CHAR(10),TRUE,IF(ISNUMBER(SEARCH("Oranges_",TRIM(MID(SUBSTITUTE(A1,CHAR(10),REPT(" ",999)),ROW($XFD$1:INDEX($XFD:$XFD,LEN(A1)-LEN(SUBSTITUTE(A1,CHAR(10),""))+1))*999+1,999)))),SUBSTITUTE(TRIM(MID(SUBSTITUTE(A1,CHAR(10),REPT(" ",999)),ROW($XFD$1:INDEX($XFD:$XFD,LEN(A1)-LEN(SUBSTITUTE(A1,CHAR(10),""))+1))*999+1,999)),"Oranges_",""),""))
Being an Array Formula it must be confirmed with Ctrl-Shift-Enter instead of Enter when exiting edit mode.
I am trying to create a column that displays the number of days between now and the next time a person is required to participate in a study.
If there were no blanks in the columns that list the dates, the following formula works (N,P & R contain dates):
=MIN(N5,P5,R5)-TODAY()
Unfortunately, my data contains blanks in the columns, which returns a "N/A" value.
Does anyone know how to avoid counting blanks in this situation?
Please let me know. Thanks.
SMALL function will ignore any blanks, so you can use this formula
=SMALL((N5,P5,R5),1)-TODAY()
If all three cells are blank you'll get a #NUM! error so you might want to add an IFERROR function to handle that, e.g.
=IFERROR(SMALL((N5,P5,R5),1)-TODAY(),"")
use this array formula:
=MIN(IF(CHOOSE({1,2,3},N5,P5,R5)>0,CHOOSE({1,2,3},N5,P5,R5))) - TODAY()
Being an array formula it needs to be confirmed with Ctrl-Shift-Enter instead of Enter when exiting edit mode.
My table updated
See if this picture of my table helps understand what I am trying to do. Thank you. B1 is where I am trying to return the column C count. I do have some duplicates in column B (as mentioned with previous table).
Use this array formulas to count the uniques:
=SUM(IF(B1:B8=0.5,1/COUNTIFS(A1:A8,A1:A8,B1:B8,0.5)))
Being an array formula it must be confirmed with Ctrl-Shift-Enter instead of Enter when exiting edit mode. If done correctly then Excel will put {} around the formula.
Check out the selection in the top right, columns "Purchase/Sale" and "NOI".
I'd like to add these two columns and insert the sum for each period in their respective space. Is there I can link the sum of the columns and add the sum to the row?
In other words, I'd like the cells to link so I would have the following result:
Thank you
Use this array form of VLOOKUP wrapped in SUM():
=SUM(VLOOKUP("CF" & G1,$A$2:$C$7,{2,3},FALSE))
Being an array formula it needs to be confirmed with Ctrl-Shift-Enter when exiting edit mode instead of Enter. If done correctly then Excel will put {} around the formula.
i found this formula : =COUNTIF(D$2:D$60000,">"&D2)+1 that gives me ranking of some data but it skips values like in the picture
is there any solution to solve this problem like to have a normal ranking without skiping values , thanks
This array formula will do it:
=SUM(IF((D$2:D$60000>D30)*(D$2:D$60000<>""),(1/(COUNTIF(D$2:D$60000,D$2:D$60000)))*(D$2:D$60000>D30)))+1
Being an array formula it needs to be entered with Ctrl-Shift-Enter when leaving edit mode. If done correctly Excel will put {} around the formula.