[
copy A1 to E1 only if min two cells is empty from B1 to D1
If all cells from B1 to D1 have any value, do nothing
If two cell have any value from B1 to D1, do nothing
Use COUNT to count how many numbers and if less than 2 put the value:
=IF(COUNT(B1:D1)<2,A1,"")
Related
For example, I have A1 that has a formula to add the sum of multiple other cells, then A2 I enter a number each week. A1 and A2 must match, if they don't then a mistake has been made. I want Row 2 to highlight if it does not match. I can figure this out but I cannot figure how to copy that in conditional formatting to apply to B1 and B2, C1 and C2, D1 and D2, E1 and E2, and so on.
From what I understand, you want to have row 2 highlighted if any of the cells in it is different from the corresponding cell in row 1. You do not want to have highlighted only the offending cells.
The only way I know to do it, short of VBA, is to create a helping row, let's say row 3, where you put =A1=A2 in cell A3, then copy it to the entire row. Then, while cell A2 is active, select the entire row 2, and create a conditional formatting rule with formula =NOT(AND(3:3))
UPDATE 03/04/21 Here a faster method (no helping row):
Select the row 2, and in the Conditional Formating, put this formula:
=SUMPRODUCT(-(1:1<>2:2))<0
If column A is marked with an X, the adjacent cell in column B will find the last populated cell in column B and simply +1 to that.
For example: If A1 is marked and B1 is HF2056, and it skips a row so that A3 is marked with an X, B3 would need to auto fill to be HF2057.Image with fake numbers for example
So how do I formulate it so that if a cell in column A is marked with an X, the adjacent cell in column B will find the last filled cell in B with data and fill in the new number?
I feel like this may be an ISBLANK formula but I can't figure it out.
Thank you in advance!
Assume : A1 is X and B1 is HF2056, A2 is blank, A3 is X
Then, in B2, formula copied down :
=IF(A2="","",LEFT(LOOKUP(1,0/(A$1:A1="X"),B$1:B1),2)&RIGHT(LOOKUP(1,0/(A$1:A1="X"),B$1:B1),4)+1)
And, formula result:
B2 : (blank)
B3 : HF2057
Remark :
The above formula result will give max number in HF10000.
If you want the number keep to increase by 1, the B2 formula will be changed to :
=IF(A2="","",LEFT(LOOKUP(1,0/(A$1:A1="X"),B$1:B1),2)&RIGHT(LOOKUP(1,0/(A$1:A1="X"),B$1:B1),LEN(LOOKUP(1,0/(A$1:A1="X"),B$1:B1))-2)+1)
I have the following in one column, it keeps going down with random letters but always end with 1.
a1
a1
b1
b1
b1
b1
b1
c1
c1
c1
how can i make it fill series but start again from one when ever a new letter.
It should look like this:
a1
a2
b1
b2
b3
b4
b5
c1
c2
c3
You can genereate a new series in the column beside it. Lets assume your data starts in A1. In put 1 in B1 and in B2 place the following:
=IF(left(A1,len(A1)-1)=left(A2,len(A2)-1),B1+1,1)
Copy B2 down.
When you are done, you can copy your information from column B and paste is a values if you do not want the numbers changing again.
I was trying to calculate the following values in a sheet based on the symbols:
Is there any way of calculating the result with formulas only?
In D1 copied down to suit:
=eval
where eval is a Defined Name set up in D1 that refers to:
=EVALUATE(Sheet1!A1&Sheet1!B1&Sheet1!C1)
Hence with 10 in A3, '/ in B3 and 2 in C3, D3 should return 5.
How do you define variable cell address in Excel. For example consider the case where the content of cell A1 is 5, cell A2 is 2, cell A3 is 10 and cell A4 is 1. How do I enter a general formula to SUM the content of the cells A7 (A1+A2) through A9 (A3-A4)? I would then like to drag the formula to columns B through CJ,... and repeat similar calculations noting that values of B1 through CJ4 are different than A1 through A4. I appreciate any suggestions.
=SUM(INDEX(A:A,A1+A2,1):INDEX(A:A,A3-A4))