Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
how can i compare two values and rank them in excel
the largest value should be 1 and smallest be last
Category amount rank
abc 300 1
abc 6 3
abc 34 2
xyz 50 2
xyz 568 1
xyz 1 3
I tried this by my own COUNTIFS($A:$A,$A2,$B:$B,">"&$B2)+COUNTIFS($A$2:$A2,$A2,$B$2:$B2,$B2)
its working
but I want it in more simpler way.
Try this:
=SUM((B2<=$B$2:$B$15)*1*(A2=$A$2:$A$15))
This is an array formula so commit by Ctrl+Shift+Enter
Assuming your data starts in cell A2 you can use
{=MATCH(B2,LARGE(IF($A$2:$A$7=A2,$B$2:$B$7),ROW(INDIRECT("1:"&COUNTIF($A$2:$A$7,A2)))),0)}
This is an array formula, so enter using CTRL + SHIFT + ENTER.
Change $A$2:$A$7 and $B$2:$B$7 to your data range.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I have a table like this and need to count the number of rows (not number of cells) that contain specific text for a result like this.
ABC 3
DEF 2
For O2016 you can use following array formula:
=SUM(--(MMULT(--($A$1:$D$6=A10),TRANSPOSE(COLUMN($A$1:$D$1)^0))>0))
Array formula after editing is confirmed by pressing ctrl + shift + enter
With Excel 365, use:
=SUM(IF(COUNTIF(INDIRECT(SEQUENCE(6) & ":" & SEQUENCE(6)),"ABC")>0,1,0))
where 6 is the number of rows; and similar for DEF
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
So I have a few cells with a numeric value in parentheses. I'd like to count how many times each fruit occurs (apples, oranges, bananas) but also count the values in the parentheses as a sum. How would I go about this?
in D1:
=SUM(($A$1:$A$12=C1)+((LEFT($A$1:$A$12,LEN(C1))=C1)*IFERROR(--MID($A$1:$A$12,FIND("(",$A$1:$A$12)+1,FIND(")",$A$1:$A$12)-FIND("(",$A$1:$A$12)-1),0)))
Array formula So confirm with Ctrl-Shift-Enter instead of Enter when exiting edit mode.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
In this example, there's three users.
Users Apples
Bob
Bob 4
Jim
Jim
Sim
Sim
Sim
I'd like to see if who has any apples and be able to fit that in a If formula (say if it's true or not).
I've thought about vlookup, but I'm not sure how to go about it since the value can be anything as long as it's not zero.
I think you're looking for SUMIF:
=SUMIF(A:A,"Bob",B:B)
This works for numeric values in column B. If the value can by "anything" (like text, or alphanumeric), you will probably need a different formula, like so:
=INDEX(B2:B7,MATCH(1,INDEX((A2:A7="Bob")*(B2:B7<>""),),0))
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have an excel file with several columns, which looks as follows
ID1 ID2 ID3
1 2 3
6 5 4
7 8 9
I would like to add one extra column, which stores the largest value for row. How to do that in Excel?
Assuming that the data you have is in Columns A through C and rows 1 through 4, put the following formula in column D, and copy it down as far as necessary:
=max(A2:C2)
In the extra column (say D1) put : =max(A1:C1)
You can paste it downward.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about programming within the scope defined in the help center.
Improve this question
Evening all:
I am trying to sum number values from a column based off a value from a different. How can I do this? =Sum(A)? I want to add the values of A based off the 10 from B.
Here is a simple screen shot of what I want to try to do:
You can use a SUMIF to accomplish what I believe you are going for. In cell C1 in your example:
=SUMIF(B:B,B1,A:A)
That would put the sum next to each occurrence of the value in column B. You could copy only the uniques from column B and do the same if that is what you're looking for: