I have a structure in ColdFusion in the format:
Jonh 55
Mary 85
Willian 93
Stone 75
Bella 85
It has 2 columns with students name on the first column and their score on the second column. How can I order it by the score from the highest to the lowest? If they have the same score, I would like to order by the name.
I'll display it in a table using cfloop. Does anyone know how can I do that?
Thanks
Related
enter link description here
I have a file in that, I want to extract the payroll present or absent in that I get date column employees Id.
Problem is, I want to extract which employee is present on a particular date. Example 19-03-2022 in that date I want to extract data of employee id
THIS IS ONE TABLE.
Emp. Id.
19-03-2022
66
95
19
11
6945
ANOTHER TABLE IS :-
EMPLOYEE ID
DOJ
PRESENT
WORKING DATE
66
28-02-2022
1
16-03-2022
66
28-02-2022
1
17-03-2022
66
28-02-2022
1
18-03-2022
66
28-02-2022
1
19-03-2022
66
28-02-2022
1
20-03-2022
66
28-02-2022
1
21-03-2022
66
28-02-2022
1
22-03-2022
66
28-02-2022
1
23-03-2022
I want to extract, this employee is actually present or not in that particular date.
If any solution for that, pls help me. I am in a big trouble.
Payout Sheets problem.
Please see this sheet tab and solve my problem.
If you want to see read me all problem are discussed.
It seems INDEX/MATCH() should work for you.
=IFERROR(INDEX($G$2:$G$9,MATCH(1,($E$2:$E$9=A3)*($H$2:$H$9=$B$2),0)),"Absent")
You may need array entry the formula with CRTL+SHIFT+ENTER.
I would like to extract a price value based on two other columns. In table 1, I am given the raw data where I want to draw from. In Table 2, I am given only the contract number, and I would like to find the type being "Mater" and have the price listed out for it.
I've tried to use this formula but I don't think I am calling the columns correctly.
=IF(AND(Table2!A1=Table1!$A$1:$A$6,Table1$C$1:$C$6="Mater"),Table1!$D$2:$D$6,"")
Is there a formula using index match, if(and), or another one that could work in this case?
Thank you!
Table 1.
Contract
Work
Type
Cost
5321a
aaa
Labor
52
5321a
ab
Mater
57
5641a
aba
Mater
10
536451a
aae
Labor
75
2441a
aan
Labor
42
53421
aar
Mater
14
Table 2
Contract
Mater Cost
5321a
57
5641a
57
53421
14
The following should work:
=SUMIFS(Sheet1!D2:D7,Sheet1!A2:A7,A2,Sheet1!C2:C7,"Mater")
(I'm assuming the first table in on Sheet1)
I have some difficulties with my IF formula.
I have the following columns that represent some subjects and the points that I managed to get for those subjects (F:H). In column I , I would like to compare my points with another table(M:N) that contains the minimum amount of points needed to pass the course .If my score is equal or greater then what the corresponding score is in column N, I would like to show PASS or FAIL in column I.
I Used the following formula but when comparing with M:N it keeps going down (outside the table) giving me in the end all the exams as passed.
=IF(AND(F2:$F$6=M2:$M$6)&H2:$H$6>=N2:$N6;"PASS";"FAIL")
F H I M N
(Subjects) (Points) (Subjects) (Points to Pass)
Mathematics 85 Mathematics 85
English 88 English 70
French 78 French 60
Chinese 56 Chinese 60
Physics 70 Sports 80
Sports 95 Physics 80
You could use:
=IF(H2>=VLOOKUP(F2,$M$2:$N$7,2,FALSE),"PASS","FAIL")
Results
Example formula should look like this:
=IF(H1>=INDEX($N$1:$N$6,MATCH(F1,$M$1:$M$6,0)),"PASS","FAIL")
Let your table layout housed in F1:N7 include header
In I2, formula copied down :
=IF(H2>=VLOOKUP(F2,M:N,2,0),"PASS","FAIL")
I have data in the following form
userID course groupNumber
===========================
111 A 90
111 B 89
234 A 90
234 B 99
234 C 67
I want to convert it to the following form for using it in other program that require it in the following form
userID course1 group1 course2 group2 course3 group3
============================================================
111 A 90 B 89
234 A 90 B 99 c 67
I am not sure if I can do it using pivot table since I do not know how to label the header of columns as course1 group1 ...and I do not know for sure number of courses and groups but I can estimate it if needed.
can I do this in Ecxel ? please direct me since I am not sure what I should search for in google, is this dynamic pivot table?
I am trying also to do it in sql but I still searching it
Note sorry I could not kwno how to format it properly
thanks
There is a very easy answer: you should keep the table as is, and use an excel pivot table in the following way:
Columns: GroupNumber
Rows: UserID, Course
Values: COUNT(GroupNumber)
I have two Excel spreadsheets. One contains average numerical grade for a student and the other a list of letter grades for numeric grades between a min and max
Spreadsheet 1
Student Avg Letter Grade
Mike 91
Joe 76
Mary 84
Sally 78
Spreadsheet 2
Min Max LetterGrade
90 100 A
81 89 B
71 80 C
61 70 D
0 60 F
How do I return the proper grade for each student in Tableau? It seems trivial but I can't figure out the calculation. Thank you for your help!!!
There is an easier way to do this by using Groups.
Import Spreadsheet 1 as a data source
Right Click on "Avg" and select Create Group
From there use Shift Click to group your ranges using Spreadsheet 2 as your reference, using labels "A, B, C"
On the top of the Create Group dialog box, make sure you rename your Field Name as "Letter Grade"
The weakness of this approach is that you have to check/redefine your groups if you are updating your data source. Using IF-ELSEIF statements may be more flexible as Inox suggested in the comments. But this is a relatively easy trick, without any programming involved. :-)
For more info, visit: http://kb.tableau.com/articles/knowledgebase/use-ad-hoc-groups-categorize
Hope this helps!