I want to hide #1234 I mean not apply the formula, until I write something on C column and also make the formula an array and no need to drag it down:
Sheet URL: https://docs.google.com/spreadsheets/d/1XHoxD-hNmpUOMVm_u-cz-4ESrabodsrS0fIfaN-n4js/edit
Thank you!
=IF(ISBLANK(C14), "", TRIM(RIGHT(SUBSTITUTE(C14:C," ",REPT(" ",100)),100))& "#1234")
You should use the IF function to check whether the respective cell ISBLANK or not.
The syntax of IF:
=IF(CONDITION_TO_CHECK, WHAT_TO_SHOW_IF_CONDITION_IS_TRUE, WHAT_TO_SHOW_OTHERWISE)
Related
I am trying to use the =sum() function in google sheets, and so far, that's all I have typed into the targeted cell. For example, I want D3 to be the sum of C2 and D2. I know how to type that. =sum(C2,D2). But I want cells D3 thru D30 to have the same equation, relative to their adjacent cells. Something like this =sum(cell to the left, cell above). Let me know if you need more elaboration, or if you have the answer, great!
Solution
Paste this formula in the first cell next to your numbers or take a look at the Example Sheet
=IF(C2="",,IF(ISNUMBER(D1),C2+D1,0))
Explanation
We check the above cell ISNUMBER if so we calculate C2+D1 if not we put 0
IF(C2="",, to calculate onlt when the range C2:C is not Empty.
If you are looking for a single formula you can also try
=INDEX(IF(ISNUMBER(C2:C), SUMIF(ROW(C2:C),"<="&ROW(C2:C),C2:C),))
I have this formula which sums up several columns in another sheet. The sheet that the formula is referencing to always has the same name as the cell next to it.
Instead of having to rewrite the formula for every cell in the column, is there a way I can just simply check for a sheet with the same name as the cell next to it? The cell ranges will always be the same.
You should use INDIRECT formula. This allows you to write references as strings.
Instead of 'Round 3'!C5:C you can write: INDIRECT("'"&C2&"'!C5:C") (assuming that word Round 3 is in C3).
Whole function looks like this (assuming that active cell is D2)
=SUM(INDIRECT("'"&C2&"'!C5:C"),INDIRECT("'"&C2&"'!G5:G"),INDIRECT("'"&C2&"'!K5:K"),INDIRECT("'"&C2&"'!O5:O"),INDIRECT("'"&C2&"'!S5:S"))
Apologies in advance if I don't explain this very well, I have only an amateur's interest in formulas.
I have a Google Sheet where I need to fill in a value, in this case, "1" in one column in the range C-J for each row.
I'd like to know the custom formula so that if I haven't filled in a "1" in any row C-J, then the C-J range of that row is highlighted red (but not the whole row)
I've attached screenshots of what it looks like currently and then an example of what I would like it to look like.
Current:
Desired:
use this custom formula:
=SUM($C4:J4)=0
or you can use:
=COUNTIFS($C4,"",$D4,"",$E4,"",$F4,"",$G4,"",$H4,"",$I4,"",$J4,"")
Use Custom Formula
=countif($C2:$J2,1)=0
I'd like to drag the formula
=if(and(AHTpivot!$A1=statusSheet!$A1, AHTpivot!$B1="wrap-up"),AHTpivot!$C1, "")
right to adjacent columns about 1,000 times. I only want statusSheet!$A1 to increase, and it needs to increase in rows instead of columns.
For instance, if the formula is in A1, and I drag it to B1, it should be in cell B2. [?]
=if(and(AHTpivot!$A1=statusSheet!$A2, AHTpivot!$B1="wrap-up"),AHTpivot!$C1, "")
Maybe:
=if(and(AHTPivot!$A1=indirect("StatusSheet!$A"&Column()),AHTPivot!$B1="wrap-up"),AHTPivot!$C1, "")
You could also use an array formula if you don't want to drag the formula.
=ARRAYFORMULA(IF(
(AHTpivot!$A1=INDIRECT("statusSheet!$A"&COLUMN(A1:AAA1))
* (AHTpivot!$B1="wrap-up")
,AHTpivot!$C1, "")
The * acts as an and.
Change AAA1 to the column reference you desire. Or, change to COLUMN(A1:1) if you want to go to the end of the sheet.
Credit to pnuts for the INDIRECT idea. :)
Don't know if it's the right place, but please help me if possible.
Google Sheets. I need a formula for the sum of value in cell directly above and cell directly to the left. I've tried something like this, but it doesn't work:
=SUM(INDIRECT(ADDRESS(ROW()-1,COLUMN()), ADDRESS(ROW(),COLUMN()-1)))
Try OFFSET: e.g. for cell B2:
=OFFSET(B2,-1,0)+OFFSET(B2,0,-1)
N.B. it fails if the values in those cells are not numeric.