COUNTIFS Formula with Multiple Criteria Ranges - google-sheets

Can anyone perhaps help me? I am trying to do the following:
I am trying to make the report pick up if the prospect is "Not Selling" if the "Not Selling" tab was ticked in either the first attempt, the 2nd attempt or the third attempt.
I used the formula below to make it work when there was only 1 attempt but when I try adding an OR function to the formula it gives me an array size error.
=countifs(Database!$R$3:$R,"="&C45+4,Database!$AH$3:$AH,TRUE)
Is there a way of doing something like what I'm trying to do below?
=countifs(OR(Database!$R$3:$R,Database!$X$3:$X,Database!$AD$3:$AD),"="&C45+4,Database!$AH$3:$AH,TRUE)
database
report
Thanks in advance
Justin

Like this possibly, if I have followed what you want:
=OR(Database!$R$3:$R"="&C45+4,Database!$X$3:$X"="&C45+4,Database!$AD$3:$AD"="&C45+4),"="&C45+4
But you may need to sort the detail there.

Related

Filter formula with 2 conditions

I am having a hard time figuring out how to get this to work on Google Sheets. I am trying to create a player pool based on the checkbox on a different tab. However, I want it to look for a checkmark, then look at the position, and then bring in the data.
Checkbox is in column A. Player position is in column H.
=if(and('Hitter Gameday'!A:A=true,'Hitter Gameday'!H:H="SS"),filter('Hitter Gameday'!B:X))
Thanks for any help anyone can provide!
Try
=iferror(filter('Hitter Gameday'!B:X, 'Hitter Gameday'!A:A=true, regexmatch('Hitter Gameday'!H:H, "C.*")))
and see if that works?

How to solve" Array result was not expanded because it would overwrite data in C2."

Fomula that works:
Fomula that doesn't work:
Hi guys, I encounter a problem.
I use the Inventory template from sheetgo.
I copy the fomula that works and paste it on another sheet.
Unfortunately, it got an error with the arrayfomula.
I have spent a long time investigating all possibilities but still can't solve them.
Is any expert able to help in this matter?
error says it all... in order to expand the results of arrayformula you need to clear range C2:C so that arrayformula could roll out. also, it looks like your formula is wrong but hard to tell for certain because you did not include a copy of your sheet nor formula

Google Sheets: Is it possible to simplify this formula? Preferably, I'd like it to calculate all the cells in the row

Can the following formula be simplified as described in the paragraph below it?
=(ABS(D$3-D5)+ABS(E$3-E5)+ABS(F$3-F5)+ABS(G$3-G5)+ABS(H$3-H5)+ABS(I$3-I5)+ABS(J$3-J5)+ABS(K$3-K5))/-1
The problem is that I don't know how many columns I'm going to end up with, and I certainly don't want to continue manually writing each column into the formula. Is there I way to simplify this formula so that every column in a row is calculated?
I've been trying various formulas to no avail, and I can't get usable results via Google searches. I suppose I don't know how to effectively word the question without writing a paragraph.
Thanks, in advance!
Try this one:
=-SUM(ARRAYFORMULA(ABS(D$3:$3 - D5:5)))
GOT IT:
=ArrayFormula(SUM(ABS(D$3:$3-D5:5))/-1)

LOOKUP Function won't output correct value

I'm trying to create an Activity tracker for a game. However, I'm trying to use the LOOKUP function to track activity throughout 3 different sheets. However, the LOOKUP function does not seem to be outputting the correct value. LINK: https://docs.google.com/spreadsheets/d/1tdq6oeEFjgxJg6FXvSH2ZmkgRlHaFiD5aycjvezfNvc/edit?usp=sharing
If you look at Activity sheet, E2:E52, you should understand that it's outputting the wrong value(At least based on what I'm reading on the google docs).
I've tried converting this over to one sheet to see if that was the problem, however, it didn't work there either, I tried being more inclusive of the exact letter and number combination and that didn't help either.
I expect it to output the Attacks column for the username based on the Activity1 sheet.
Any help would be greatly appreciated.
PS: I tagged excel as it does the same exact thing on excel, however it gives slightly different values. I'm very confused.
use VLOOKUP instead:
=ARRAYFORMULA(IFERROR(VLOOKUP(D2:D,
{Activity1!C:D; Activity2!C:D; Activity3!C:D}, 2, 0)))

Google Sheets COUNT/FILTER function

I'm having some trouble getting these functions to work. I'm not even sure if they're the ones that I should be using, but here is the following information I can provide. I had previously opened a topic, but I was getting responses about my confusing query. So, hopefully this one is better explained.
I have data in the following fields: A1:N7, as well as A12:L18.
I need a function to check all of the fields and add up the amount of times certain numbers show up. The numbers that need to be checked are: <90, 90-99.99, 100-109.99, and =>100.
First off, I can use this formula to count the <90 and =>100 values in all the fields, which works.
=COUNTIFS(A1:N7,"<90")
However, I'm unsure how to appropriately add the results from A12:L18 into it. My attempts have failed. Likewise, for the ranged functions, I'm completely lost. I've tried something like this:
=COUNT(FILTER(A1:N7,A1:N7>=90,A1:N7<=99.99))
Yet, this always returns 0 as the result. In addition, like the above formula I don't know how I'd nest in a way to check the additional fields in A12:L18.
An old thread, but I came across it trying to solve a similar problem.
Using the original example:
=COUNT(FILTER(A1:N7,A1:N7>=90,A1:N7<=99.99))
I was also getting zero until I realised COUNT returns the number of NUMERIC values in the range. Assuming the result range isn't numeric, I tried:
=COUNTA(FILTER(A1:N7,A1:N7>=90,A1:N7<=99.99))
and got the result I was expecting.
You just need count rows your matrix with ROWS()
=ROWS(FILTER(...))
Does this formula work as you want:
={"<90",COUNTIF({A1:N7;A12:N18},"<90");"90-99.99",COUNTIFS({A1:N7;A12:N18},">=90",{A1:N7;A12:N18},"<100");"100-109.99",COUNTIFS({A1:N7;A12:N18},">=100",{A1:N7;A12:N18},"<110");"=>110",COUNTIF({A1:N7;A12:N18},">=110")}
I made an example sheet where you can see it working: https://docs.google.com/spreadsheets/d/1BPexh5syksapZ9rd_brAa3NkN28LXAvB6dVMLEkM2r0/edit#gid=0

Resources