I need help for a simple Countif into an Arrayformula - if-statement

I am trying to transpose this formula into an Arrayformula but I am stucked.
=COUNTIF($C$3:C3;C3)
Can someone help me, please?
https://docs.google.com/spreadsheets/d/1gH1_8vnKUNDr0JtETjxJtD82cb5FWHQCAgMeebkebYU/edit#gid=0

use:
=ARRAYFORMULA(IF(TRIM(C3:C)="",,COUNTIFS(C3:C, C3:C, ROW(C3:C), "<="&ROW(C3:C))))

Related

Power BI Slicer with 'OR' not 'AND'

I am trying to get an output where my slicers are ration and hours.
Now, by default, my output is with AND but I want to get my output with OR.
Could you please help me?
Thanks.

Transforming data from multiple columns to rows and keeping "labels"

I am trying to create a Google Sheet where some of the data is inputet on a column basis.
Like this
This input is done in a Input sheet. And then I want to transform the data into this form in the Output sheet.
I have no idea how I could do this in a simple way. I did think about some solution using the Transpose function, but I can't realy wrap my head around how to solve this.
Here is a link to the sheet if anyone can help me out:
https://docs.google.com/spreadsheets/d/1W244e2IOyORYyMPg6VnRiYDgX2ux7VZn4N27mEUSOII/edit#gid=1942499075
try:
=INDEX(QUERY(SPLIT(FLATTEN(IF('Input sheet'!C4:L="",,
'Input sheet'!A4:A&"×"&'Input sheet'!B4:B&"×"&'Input sheet'!C3:L3&"×"&'Input sheet'!C4:L)), "×"),
"where Col2 is not null"))

I can't get formula to work in a column that is referencing another cell that happens to be using the importxml command

Am I allowed to share the link to my google sheets to have someone look at it?
I have column G that is not calculating correctly and I can't understand why.
https://docs.google.com/spreadsheets/d/1XGDcgIYhW4_cq065MM7i135AyJha8JcMGejATuoVT7Q/edit?usp=sharing
My only guess is it doesn't like to refer to a cell that is pulling in data from and import command. The formula calculates fine in excel but not in sheets, any suggestion?
Formula is:
=IF(B17="Purchase",index($E4:$E12,match(C17,$B$4:$B$12))*D17,"")
try:
=IF(B17="Purchase", INDEX($E4:$E12, MATCH(C17, $B$4:$B$12, 0))*D17, )

Division in PowerBI

So my question is, how can divide figures in one column to a specific "cell". I am sure that there is a dax formula that can do this just not sure which. Please help.
Thanks.
Here are some articles describing how to calculate subtotals values with DAX in PBI.
https://powerpivotpro.com/2013/07/writing-a-subtotal-calc-column-aka-the-simplest-use-of-the-earlier-function/
https://powerpivotpro.com/2012/03/subtotals-and-grand-totals-that-add-up-correctly/

Vlookup to compare two tables

IF(ISNA(VLOOKUP(Table1,Table2,1,FALSE)),"No","Yes")
I want compare all the columns for two tables within a single excel sheet and I used the above formula but somehow the formula always gives "Yes" irrespective of whether the values match or not. Can someone please help me out to get correct comparison results.'
Thanks
Please see the snapshot below
Formula will be as below. Kindly take this as example and work out as per your wish.
=IF(VLOOKUP(G1,$A$1:$B$7,2,FALSE)=VLOOKUP(G1,$D$1:$E$7,2,FALSE),"Same","Different")