The excel formula that I'm using appears to be repeating the same results upon condition of only one value on my conditional formatting drop down list. In this case, it repeats the results only for "Pacira Biosciences". How can I fix it to stop repeating the same results just like the other items on the drop down list?
The formula is this:
=IFERROR(INDEX(RAW!$D$2:$D$279,SMALL(IF(RAW!$B$2:$B$279=$C$5,ROW(RAW!$D$2:$D$279)-1,10^10),ROWS($A$1:A1))),"")
Excel File can be seen/downloaded here on Google Drive:
https://drive.google.com/file/d/1UYw1ZX941yr2gVY0DOBd_YEGI1d9jmPG/view?usp=sharing
Use this array formula:
=IFERROR(INDEX(RAW!$D$2:$D$279,SMALL(IF(((RAW!$B$2:$B$279=$C$5)*(IFERROR(MATCH(RAW!$D$2:$D$279,IF(RAW!$B$2:$B$279=$C$5,RAW!$D$2:$D$279),0)=ROW(RAW!$D$2:$D$279)-1,FALSE))),(ROW(RAW!$B$2:$B$279)-1)),ROW(1:1))),"")
Being an array formula it must be confirmed with Ctrl-Shift-Enter instead of Enter when exiting edit mode
If in the future you upgrade to OFFICE 365 then it gets much simpler:
=UNIQUE(FILTER(RAW!$D$2:$D$279,RAW!$B$2:$B$279=$C$5))
Related
I'm looking for an excel formula to return the index of the first value in a large column such that ABS((COL)(ROW)-(COL)(ROW+2))< 0.1
Clearly, this is pretty easy to program in VBA by starting with the first row in the column and iterating through. However, I'm just looking for an excel formula in this case.
I think it will need to be something functionally like:
=INDEX($A$1:$A$100,MATCH(TRUE,($A$1:$A$100)-($A$3:$A$102)<.1,0))
This clearly won't return anything. I'm interested in how to do that subtraction part using excel formulas.
Thanks!
Just need to add the ABS and ARRAY ENTER the formula:
=INDEX($A$1:$A$100,MATCH(TRUE,ABS(($A$1:$A$100)-($A$3:$A$102))<.1,0))
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.
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'm having trouble phrasing my question, so here's a screenshot. Basically I want G2 to be a field I can copy and paste into a field on a website for billing purposes. The TEXTJOIN function is the closest I've gotten to making this work but it still isn't right. I'm having the following problems:
The price of each fruit loses its ending 0's during concatenation
I intend to keep adding more fruits, but =TEXTJOIN(E:E) includes E1 which is obviously the heading
The resulting string in G2 isn't copy-and-paste-able without first copying and selecting Paste Value within Excel
Screenshot for reference:
I might not be able to avoid the last problem without VBA but I'd like to at least navigate around the first 2 issues. I suppose creating a button that would output G2's value to a Notepad document would work as well, or something along those lines.
In E2 put:
=A2&"("&TEXT(D2,"$#,##0.00")&")"
to do the concatenation.
Then just specify the start in E2:
=TEXTJOIN(", ",TRUE,E2:E1040000)
Also you can skip the helper columns with the following array version of TEXTJOIN:
=TEXTJOIN(", ",TRUE,$A$2:INDEX(A:A,MATCH("zzz",A:A))&"("&TEXT($D$2:INDEX(D:D,MATCH("zzz",A:A)),"$#,##0.00")&")")
Being an array formula it needs to be confirmed with Ctrl-Shift-Enter instead of Enter when exiting edit mode.
When you copy a cell to the clipboard and paste it anywhere but Excel it should only paste the text, but that may depend on the website also.
I would like to use a lookup formula to bring back multiple values. For example when it finds more than value in a look up I would like excel to add each value in the adjacent columns.
Can anyone help?
see attached
You can use this array formula:
=IFERROR(INDEX($B$2:$B$13,MATCH(1,($A$2:$A$13=$H$2)*(COUNTIF($H$2:H$2,$B$2:$B$13)=0),0)),"")
Being an array formula, put it in the first cell then hit Ctrl-Shift-Enter instead of enter when exiting edit mode. If done correctly then Excel will put {} around the formula.
Then copy/drag across enough columns till you get blanks.
You can also use this formula :
=IFERROR(INDEX($B$2:$B$13,SMALL(IF($H2=$A$2:$A$13,ROW($A$2:$A$13)-ROW($A$2)+1),COLUMN(A2))),"")
As this is also an array formula, press Ctrl+Shift+Enter while entering the formula.
I've been trying to extract a list using a formula, removing duplicates and sorting it in alphabetical order. The array formula I have used is
=IFERROR(INDEX(rt04client, MATCH(MIN(IF(COUNTIF($A$1:A1 rt04client)=0,COUNTIF(rt04client, "<"&rt04client)+1,9.9999E+307)), COUNTIF(rt04client, "<"&rt04client)+1, 0)),"")
where rt04client is the range name.
The formula works perfectly but the problem I have is that I have a few names from that list that I would like to ignore. I have name ranged that list as Developer.
How would I be able to subtract developer from rt04client?
P.s. All the range is text
Thanks
You would just add another countifs() to the IF statement COUNTIF(Developer,rt04client)=0:
=IFERROR(INDEX(rt04client, MATCH(MIN(IF((COUNTIF($A$1:A1,rt04client)=0)*(COUNTIF(Developer,rt04client)=0),COUNTIF(rt04client, "<"&rt04client)+1,9.9999E+307)), COUNTIF(rt04client, "<"&rt04client)+1, 0)),"")
This is an array formula and must be confirmed with Ctrl-Shift-Enter instead of
Enter when exiting edit mode. If don correctly Excel will put {}` around the formula.
The idea is the if both are true then it resolves to 1 or True if either is false it resolves to 0 or False.