Format number only if it's >10000 in google sheets - google-sheets

The title pretty much explains it:
In google sheets, if the number in the cell is > 10000 - it should be expressed in kilos.
Else, normally.
Example:
9999 - 9999
11200 - 11 k
312400 - 312 k

Within sheets, you can try this custom number formatting.
[>999]0,"k";[<-999]0,"K";0

If you're happy to use a formula:
=IF(A1>10000, CONCATENATE(INT(A1/1000), " k"), A1)

Related

Add zero in number in Google Sheets formula

I am looking for a formula in Google Sheets to find the number of the week of a date. The desired result would be a concatenation of S + the number of the week (with a space between the two). If the number of the week is less than 10, I would like an extra 0 in this data.
Here are the different results desired according to the different cases:
01/01/2023 → S 52
02/01/2023 → S 01
27/08/2023 → S 09
After many attempts, I still cannot incorporate the 0 when the week number is less than 10. Could you please help me?
Here is my formula (assuming a date is in A1):
="S "&(SI(NO.SEMAINE(A1)-1<10);"0"&NO.SEMAINE(A1)-1;NO.SEMAINE(A1)-1)
Can you try:
="S "&TEXT(WEEKNUM(A1;21);"00")
Use TEXT() function. Try-
="S + " & TEXT(WEEKNUM(A1);"00")

How to Importrange + Count on Google Sheets?

I'm trying to import data from another worksheet and count it simultaneously. It's only producing 1 for me, rather than 11 - which is what it should be.
I've tried the following:
=COUNT(IMPORTRANGE("URL","Shirts!F:F"))
first you need to run your importrange formula and allow access to link your sheets:
=IMPORTRANGE("URL", "Shirts!F1")
then try:
=COUNT(IMPORTRANGE("URL", "Shirts!F:F"))
also make sure your set is numeric
To count cell that not blank please use:
=COUNTA(IMPORTRANGE("URL","Shirts!F:F"))

How to create an ARRAYFORMULA that SUM multiple columns that are not next to each other

Kind people smarter than myself:
I want to convert this formula in Google Sheets:
=SUM(L3:O3,R3:U3)
into an array formula for rows 3 - 24. Any help or suggestions appreciated, thanks!
An array formula is created by entering the formula and then using
ctrl + shift + enter
Does this formula work for you:
{=SUM(L3:O24,R3:U24)}
You'll notice than an array formula will automatically add the {} to the front and back of the formula.
Use +
=ARRAYFORMULA(L3:O3+R3:U3)
or
=ARRAYFORMULA(L3:O24+R3:U24)

Match + offset in google sheets

Probably quite simple, but cannot get it together.
I simply want to match cell B2 with the range D2:D12. If there is an exact match, then pull the link next to the table with destinations, and give that value in A1.
Thanks so much for the help!
// Non-coder building chatbot backend in Google Sheets :)
Try A1:
=VLOOKUP(B2,D1:E15,2,0)

Sum cells if date is correct (SUMIF)

I am having a little problem with Google Sheets. My sheet looks like this:
A B C
24.11.2014 07:30:12 Fruit 500
24.11.2014 17:34:32 Meat 450
25.11.2014 07:30:09 Blah 1000
25.11.2014 18:30:47 Blah 802
Now I want to add the numbers in C:C if the date equals 24.11.2014. My first guess was using:
=SUMIF(A:A,">="&E2,C:C)
Where E2 = 24.11.2014
After messing around with it, it still gives me a parsing error. SUMIF usually works with Google Sheets.
Here is the simplest solution:
=SUMIF(A:A;"*"&E2&"*";C:C)
you sum the values in C:C if you find E2 in A:A. and the result 950 in this example. Hope this works fine.
After changing to the right argument separator (for the locale of the OP) the original formula seemed to work:
=SUMIF(A:A;">="&E2;C:C)

Resources