I have some Google Sheet with 2 columns:
A B
a1 ..
a2 ..
.. b1
a2 b2
.. b3
.. means empty cell;
I want to fill column A with values from B if cell in B is filled.
In this example I want to get table:
A B
a1 ..
a2 ..
b1 b1
b2 b2
b3 b3
I did something this:
=IF(NOT(ISBLANK(B1));B1)
But in situation when B1 is empty but A1 isn't A1 getting "FALSE" instead of current value A1.
How do I fix my snippet?
Related
Can someone understand why my IF Statement isn't returning the desired result? The logic makes sense to me but obviously it is incorrect.
What I'm trying to do is make A1 = B1 if both C1 and D1 are blank. This condition of my IF Statement isn't working, it returns a 0. Does anyone know why?
What I think the logic of my IF Statement is AND what I'm trying to achieve:
IF D1 is blank, make the content of A1 = C1. IF C1 is blank, make the content of A1 = B1. Otherwise make A1 = D1.
=IF(ISBLANK(D1),C1,IF(ISBLANK(C1),B1,D1))
So check C1 & D1 and set A1 = B1, enter this in cell A1:
=if(and(C1="",D1=""),B1,D1)
This will set cell A1 equal to B1 if C1 & D1 are blank, if either C1 or D1 are not blank then A1 will be equal to D1.
This is based on your middle paragraph:
What I'm trying to do is make A1 = B1 if both C1 and D1 are blank.
What you have in your final paragraph is different:
IF D1 is blank, make the content of A1 = C1. IF C1 is blank, make the content of A1 = B1. Otherwise make A1 = D1.
As you don't test C1 and D1 together.
Edit based on your comment:
=IF(AND(ISBLANK(C1),ISBLANK(D1)),B1,if(isblank(D1),C1,D1))
Which does if both C1&D1 are blank then B1, if D1 is blank then C1 if not B1.
Hi I am not sure how to write an excel formula to fulfill the below criteria
1. If Cell A1, B1 and C1 are the same | Show "Yes"
2. If Cell A1, B1 are the same but C1 is blank (vice-versa) | Show "Yes"
3. If Cell A1, B1 are the same but C1 is different (Vice-versa) | Show "Need to Update"
4. If Cell A1, B1 and C1 are all blank | Show ""
Use this formula:
=IF(AND(A1="",B1="",C1=""),"",IF(AND(A1=B1,B1=C1),"Yes",IF(AND(A1=B1,C1=""),"Yes",IF(AND(A1=B1,B1<>C1),"Need to update","None of the above"))))
I have a in A column a set of values with Name and Id
like in cell A2 it will be --- 1100768_Sakhawat_Akram, 1100768_Sakhawat_Akram
like in cell A3 it will be --- 1134260_Malik, 1134260_Malik
like in cell A4 it will be --- 1759519, Hajraf_N_Aloteibi
like in cell A5 it will be --- Hamad_Osman, 1128046
i did tried with left, right, mid, find and search function but nothing is working
as result in cell b2 will be 1100768 and in c2 will be Sakhawat
as result in cell b3 will be 1134260 and in c3 will be Malik
as result in cell b4 will be 1759519 and in c4 will be Hajraf
as result in cell b5 will be 1128046 and in c5 will be Hamad
in column B emp Id and Column C emp name
not sure as which function to use
In B2, formula copied down :
=AGGREGATE(14,6,--MID(A2,ROW($1:$250),7),1)
In C2, formula copied down :
=LEFT(SUBSTITUTE(SUBSTITUTE(A2,", ","_"),B2&"_",""),FIND("_",SUBSTITUTE(SUBSTITUTE(A2,", ","_"),B2&"_",""))-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 have the following table with around 500 rows that I need to transpose into columns:
A B
A1 B1
A2 B2
A3 B3
The result I'm trying to get is
A B C D E F
A1 B1 A2 B2 A3 B3
Because the results are to be the interleaving of two columns I think not a duplicate of the OP indicated (at one time). Assuming A1 is in cell A2 (i.e. A and B are column labels) I suggest in C2 and copied across to suit:
=IF(ISODD(COLUMN()),OFFSET($A1,COLUMN()/2,0),OFFSET($A1,(COLUMN()/2)-1,1))