Show list / array after IF - arrays

I need help with showing a list of items as shown in cell D3 of this doc. I don't know if the if statement is adequate for this.
https://docs.google.com/spreadsheets/d/1voFZlpCpa3feHj5vJZ_R30KIP_fV9oCA9ndlptnk350/edit?usp=sharing

use:
=FILTER(A2:B, A1:B1=D1&" "&E1)

Is this what you were looking for?
=IFS(E1= 1, JOIN(",",A2:A5),E1= 2, JOIN(",",B2:B5))
Thanks

Related

Index or HLookup working "alone" but not working inside ArrayFormula

I'm trying to put the following formulas inside an ArrayFormula but the result is wrong (keep providing the first row result):
Working in each single cell
=INDEX($D$2:$AKA;match($A2:A;$A$2:A;false);MATCH(DATE(YEAR(TODAY());MONTH(TODAY());1);$D$1:$AKA$1;false))
Showing the same result in all cells
=arrayformula(IF(LEN($A$2:A);INDEX($D$2:$AKA;match($A2:A;$A$2:A;false);MATCH(DATE(YEAR(TODAY());MONTH(TODAY());1);$D$1:$AKA$1;false));))
Gsheet example
Thanks in advance,
Nick
use:
=INDEX(IFERROR(HLOOKUP(EOMONTH(TODAY(); -1)+1; D1:1000; IF(A2:A="";;ROW(A2:A)); 0)))
You may also try QUERY() approach.
=QUERY(INDEX(D2:5000;;MATCH(EOMONTH(TODAY();-1)+1;D1:1));"limit " & COUNTA(A2:A))

How to add title rows using Array Formula

I am trying to add title of each column but my formula is populating an error. But when i use this without titles it works fine. But how to add titles using Array Formula.
any help will be appreciated.
={"Active","Link","Lake","Temp",Talei","Shmk","Shmtr","Kile";ARRAYFORMULA(IFERROR(VLOOKUP(A5:A,'Sheet2'!$A$2:$J,{3,4,5,6,7,8,9,10},0)))}
try:
={"Active","Link","Lake","Temp","Talei","Shmk","Shmtr","Kile";
ARRAYFORMULA(IFERROR(VLOOKUP(A5:A, 'Sheet2'!$A$2:$J, {3,4,5,6,7,8,9,10}, 0)))}
or:
={"Active","Link","Lake","Temp","Talei","Shmk","Shmtr","Kile";
ARRAYFORMULA(IFERROR(VLOOKUP(A5:A, 'Sheet2'!$A$2:$J, {3,4,5,6,7,8,9,10}, 0),
{"","","","","","","",""}))}

Google Sheets search and select from Database

i'm trying to make a advanced search but i'm stuck at all. I tried it with =SVERWEIS and also with INDEX but failed.
I hope the doc explains enough what I wanna try to do but failed at all. My knowlege isn't that bad but here I need help. Would be nice if someone could help me with this.
https://docs.google.com/spreadsheets/d/1BGFzntBg-YHcRHM0qChFg9yoLahoOTUehoV3_9DY9PU/edit?usp=sharing
This is the doc and can be edited.
Thanks for your time reading my bad english post. :)
https://prnt.sc/t7c85l
use:
=ARRAYFORMULA(VLOOKUP(A3:A; D:H; MATCH(B2; D2:H2; 0); 0))
spreadsheet demo
You can write formula as given below -
=if($B$2=E2;E5;0) + if($B$2=F2;F5;0) +if($B$2=G2;G5;0)+if($B$2=H2;H5;0).
Copy this formula in B5 cell in your sheet and try to change the filter from B2 cell.
You can extend this formula for 400 fields.

How to make "Count in angularjs or lodash"

[https://i.imgur.com/4wFEh1v.jpg][1]
You can see in image. I want to write count for this array. red box is analytic for attr of objects in array. i tried count Present,Late,Leave,...when list item checked with present or Late or Leave,...
How to count them. Please help code in angularjs or lodash. Thank you!
$scope.CountStudents = _.countBy($scope.Students, 'length');
console.log($scope.CountStudents);
You're not very clear about what exactly your problem is (besides learning AngularJS and Lodash ;-) ) and surely omitted a lot of required information.
However, just guessing:
With lodash's filter() function you can excerpt only those elements of a list that match a condition:
$scope.countAbsent = _.filter(students, {AbsentStatus: 'whatever'}).length;
To give you the number of students with 'whatever' as the AbsentStatus.

How can i get the number of the place in an array (AS3)?

if I have an array like this:
var myArray:Array = ["apple","orange","strawberry"];
then I want to get the order number of the orange, which is 1, out. Is there any way to do that?
If you want the index of "orange" you could do this:
trace(myArray.indexOf("orange")); // returns 1
If you want to get a hold of data in a few different ways it might be worth using a dictionary object.
http://gskinner.com/blog/archives/2006/07/as3_dictionary_.html
Refer the following link, then will know about all feature of arrays.
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Array.html

Resources