Textjoin based on multiple columns and a condition - excel

HI I would like to know what is the formula to textjoin/concate below information? summary of status
I have tried to use this but not sure how to include the second column in and have unique values
=TEXTJOIN(",",TRUE,(UNIQUE(IF(I6:I17=J20,K6:K17,"")))) - only one column
if include the array, will not have unique value, duplicate, and actual requirement the column will not be adjacent.
I'm kinda hopeless with formula still learning.
Any help is appreciated, thank you!!

One option:
Formula in G2:
=LET(a,UNIQUE(A2:A12),HSTACK(a,BYROW(a,LAMBDA(b,TEXTJOIN(", ",,UNIQUE(TOCOL(CHOOSECOLS(FILTER(C2:E12,A2:A12=b),1,3))))))))

Related

NEED EXCEL IN COUNTIF AND COUNTIFS

ı am stuck in formula and ı don't know how to solve this problem.
ı want a write a formula which is check the names if the names are same counts data which is in the other column.
Can you help me please.
In the formula below the name is in A2. The formula searches all the column B for duplicates and writes the number of matches found in its own cell. Therefore the formula must be in a column other than A or B.
=COUNTIF($B:$B, $A2)
Say, you have the formula in cell C2, you can copy it down as far as column A has values and do the count for every one of the names in column A.
In this problem ı use SUM(COUNTIFS( method.
example = sum(countifs(B:B;name which ı described for criteria;E:E;{"and this part ı described all data names which is in E column";"like this";"as far as want"}))
ı tried to explain with best way ı hope this answer will help you.
maybe there is a short way to do this if you solve this with other way please tell us.
Thank You.

N/A error while using the correct VLookup formula to get value from other sheet

In excel, I was trying to get fund value of a particular mutual fund by using VLookup to search another sheet. In the process, I am getting N/A error even if the VLookup formula seems correct.
The below screenshot is of the sheet with the VLookup excel formula:
Is there any issues with the vlookup formula that I am using here.
=VLOOKUP(D4,Sheet1!$A$5072:$E$5075,5,FALSE)
I have tried many version of the vlookup but to no avail. Could anyone please help? Thanks!
Cleaning the data is the best option, so that both values are either all text, or all numbers.
But a quick and dirty work aroubd would be to use to convert the text to numbers
=INDEX($E$5072:$E$5075,MATCH(D4,VALUE($A$5072:$A$5075),0))
or
=XLOOKUP(D4,VALUE($A$5072:$A$5075),$E$5072:$E$5075,,0,1)
Agree with Chris Neilsen that this is most likely a case of different formatting between the lookup item vs lookup array. The left alignment implies that both are formatted as text. Given this, just double check that both indeed are formatted as text vs. someone left-aligning a column of numbers.
Let us know if that doesn't solve the problem and we can walk you through replacing this formula with an Index+Match formula.

Ranking extra criteria

I came across this formula yesterday and wondered if someone would be able to help expand it for me. This is what I found below:
=COUNTIF($C$1:$C$99,">"&C1)+1+SUMPRODUCT(--($C$1:$C$99=C1),--($B$1:$B$99>B1))
This formula is for 2 sets of criteria, in column C and then B.
Can anyone please help me add a third set of criteria, which would be in column D?
It would be easier to use COUNTIFS in the original formula unless you have a very old version of Excel
=COUNTIF($C$1:$C$10,">"&C1)+1+COUNTIFS($C$1:$C$10,C1,$B$1:$B$10,">"&B1)
Then just add another column in the same way (I have used column A because it was testing column C first and moving right to left)
=COUNTIF($C$1:$C$10,">"&C1)+1+COUNTIFS($C$1:$C$10,C1,$B$1:$B$10,">"&B1)+COUNTIFS($C$1:$C$10,C1,$B$1:$B$10,B1,$A$1:$A$10,">"&A1)
Plz change ranges as required.

Re: Count value of cells in one column that are within a specific date range in another

Hope you guys can help me please :)
I am trying to create a profit/loss sheet that automatically counts the values in all cells in AH that are within a specific month...
What is the best way to go about this please? Any ideas?
I thing the following formula might work for you:
=SUMPRODUCT((MONTH(A1:A60)=2)*C1:C60)
Where A is the date and C is the value that needs to be counted.

VLOOKUP a value to the left of the Lookup_value

Using Excel, is there any way to use the VLOOKUP function to find the date corresponding the minimum and maximum values?
With your layout #Mark is correct (you can't) and for the reason stated. INDEX/MATCH may be a suitable alternative but to provide some detail, please try in say I30 copied across and down to suit:
=INDEX($H$6:$H$26,MATCH(I27,I$6:I$26,0))
No, there is no way to look left using VLOOKUP - it can only look right. You should look at INDEX/MATCH combo to solve this.
If you're willing to use a helper column to hold the date, you can. In my example I added the helper column in column N. So column N also displays the date from column H.
=VLOOKUP(I27;$I$6:$O$26;7;0)
=VLOOKUP(I28;$I$6:$O$26;7;0)
...
There is an easy solution for this - if you don't insist on using VLOOKUP() :-)
Above your row 27 enter a new row, repeating the column headings ("Thomson" etc.). You can just use =I5, =J5 and so on.
Now enter this formula in I30: =DGET($H$5:$N$26;1;J27:J28) ... and drag it to the right.
For the maximum values you need to repeat the column headings just above the "maximum" row again.

Resources