I have this kind of data in a google spreadsheet:
NAME AGE VALUE1 VALUE2
John 18 1 5
Tyron 22 5 4
May 18 1 6
Lewis 25 8 9
Donald 18 6 7
I wanna try to count how many occurrences where VALUE2 > VALUE1 and where age = 18
I tried something like that:
=COUNTIFS(B0:B10;18; B0:B10; D0:D10>C0:C10)
but that doesn't work
Someone to help?
Try below formula
=SUMPRODUCT(B2:B6=18,D2:D6>C2:C6)
FILTER() will also work.
=ArrayFormula(SUM(--(FILTER(A2:A6,B2:B6=18,D2:D6>C2:C6)<>"")))
Related
I have data like below in google sheets
A B C
1 82 54.73
2 20 58.32
4 78 57.84
3 21 58.58
2 20 55.05
3 20 54.55
1 20 49.63
4 21 43.65
2 33 43.65
5 19 45.87
In this column A can have repeated values
I want to list the rows with same column A values together and order by column B and get below output
A B C
1 20 49.63
1 82 54.73
2 20 58.32
2 20 55.05
2 33 43.65
3 20 54.55
3 21 58.58
4 21 43.65
4 78 57.84
5 19 45.87
Can this be achieved using google sheets. If so please suggest the formula to achieve same.
or try:
=QUERY(A1:C; "where A is not null order by A,B"; )
Use the SORT function. Like this:
=sort(A1:C10,1,1,2,1)
I have the below table in Sheet-1:
Name
Qty
CurVal
PrevVal
ABC
2
6.5
7.23
DCE
9
9.77
5.43
EFG
4
13
9.17
LKD
23
5.79
6.65
RSB
12
16.78
12.26
TYR
8
11.38
6.84
I would like to find and display only the Names, which fulfil below two conditions using Google Sheet formula:
PrevVal<8
CurVal>8
By these above conditions, I'm expecting to see Names==> DCE and TYR in Sheet-2.
Please help me out.
try:
=FILTER(Sheet1!A:A; Sheet1!D:D<8; Sheet1!C:C>8)
or:
=UNIQUE(FILTER(Sheet1!A:A; Sheet1!D:D<8; Sheet1!C:C>8))
I've been struggling for a couple of days now how to get this to work. I have a set of data that I get in a CSV format, that I will copy past in a Google Sheets workbook.
On sheet 1 I have the following (example) data:
Hours Expertise Responsible Rate Total
4 Cleaning Bob 11 44
2 Cleaning Barb 15 30
3 Woodwork Xander 19 57
1,5 Electricity Bob 22 33
There are only 3 responsible people in this example, and I now need to create a sheet per person, showing only their data, but in the same way as it is in the combined sheet.
So what I would like to end up with (for this example) are 3 sheets:
Sheet Bob
Hours Expertise Responsible Rate Total
4 Cleaning Bob 11 44
1,5 Electricity Bob 22 33
Sheet Barb
Hours Expertise Responsible Rate Total
2 Cleaning Barb 15 30
Sheet Xander
Hours Expertise Responsible Rate Total
3 Woodwork Xander 19 57
But to be honest, I'm kinda lost right now. I couldn't get this to work with pivot table or any of the other things I could find with google. I also tried using Vlookup, but then I end up with empty lines in between.
use:
=QUERY({'sheet 1'!A:E}, "where Col3 = 'Bob'", 1)
=QUERY({'sheet 1'!A:E}, "where Col3 = 'Barb'", 1)
=QUERY({'sheet 1'!A:E}, "where Col3 = 'Xander'", 1)
I have a Excel table with 4 columns, something like this :
A B C D
11 Id Value Id2 Value2
12 2 10 2 10
13 4 11 4 11
14 1 100 1 10
and I'd like to compare the id and value with the id2 and value2 to find out if there is any typed error of a value that corresponds to the id,
In this case the value2 with the corresponding id2 "1", D14, is wrong because on the row A14 dhe value that corresponds to the id 1 is 100, I have to do this for something like 2000 rows!
On cell E2 type this:
=IF(CONCATENATE(A2;B2)=CONCATENATE(C2;D2);"OK";"ERROR")
If it doesnt work try replacing ; with ,
It should work
Regards,
I have an Excel file which contains two columns for hours and minutes, like:
hr |min
---+---
7 | 2
10 | 16
9 | 12
I would like it to present in additional column as
07:02
10:16
09:12
How to do that in Excel 2010?
A B C
1 hr min hr:min
2 1 2
3 2 12
4 3 15
5 10 45
click on the cell C2 and put follwing formula at the formula bar and drag it for other rows.
=CONCATENATE(CONCATENATE(IF(A2 >9, A2, CONCATENATE("0",A2)),":"),CONCATENATE(IF(B2 >9, B2, CONCATENATE("0",B2))))
To get Sum of the of hr:min column
click on the cell where you want to display total and put follwing formula at the formula bar.
=CONCATENATE(CONCATENATE((SUM(A2:A5) + INT(SUM(B2:B5)/60)),":"),MOD(SUM(B2:B5),60))
Here you go
=SUM(TIME(A2,B2,0))