Run After A Certain Column is Filled - excel

For example I have cells A1,B1,C1. A1 and B1 are empty and C has a formula = A1+B1. I would like to do is that C1 will add A1 + B1 once B1 is no longer empty.
In reality, there would be D1,E1,F1 ... so forth with formulas as well. I can put the formulas inside a Workbook_change routine, but it would be very buggy if you do a copy and paste. I was wondering if there is another way of doing it?

You don't need VBA. In C1 you can enter this formula:
=IF(AND(LEN(A1)>0,LEN(B1)>0),A1+B1,"")

Related

Lock excel reference to a single cell on another sheet / workbook even after moving the source

I want the formulas in Sheet02 to remain intact even after moving or deleting the cell data in Sheet01. The formulas in Sheet02 should always show what is in Sheet01 A1, A1, B1, B2, etc. When I move the cell A1 to C1, the formula in Sheet02 automatically turns to =Sheet01!C1 and I want it to remain at =Sheet01!A1.
Sheet01
A
B
A1
B1
A2
B2
Sheet02
A
B
=Sheet01!A1
=Sheet01!B1
=Sheet01!A2
=Sheet01!B2
I have tried with VLOOKUP, but same result. Help apreciated.
I dont know if this is best solution but it works:
Write your formula as =INDIRECT("Sheet01!A1") it will not change whatever happens in Sheet01 but problem is you cant Copy/Fill this formula and each formula has to be writen separatly,
But if you want to return cells in same position but from Sheet01 you can adjust it like this: =INDIRECT("Sheet01!"&ADDRESS(ROW(),COLUMN(),4,1))
Hope it will help.

Fill blank value in Excel

Need help in Excel for the following problem
ColA ColB
A1 B1
A2 B2
A3 B3
A4
A5 B5
A6 A6
A6
A6
if Column B is blank, I need to copy the value of ColA into ColB. But if the value is already present, then no action is needed.
Is it with formula or Vba?
A formula like should be ok (you copy/paste this formula to every cells in your Col)
=IF(B1="",A1,B1)
In column C enter the following formula:
=IF(B1="", A1, B1)
Copy this formula down column C. Then, assuming it looks right, you may delete the current column B, leaving the new column to become the new column B.
It is important to note that this formula won't work if directly entered into column B. In that case, Excel would complain about a circular reference.
Highlight the entire column B used range and press Ctrl+F to open find and replace then insert select
find " " (leave blank)
replace =OFFSET(INDIRECT(ADDRESS(ROW(), COLUMN())),,-1,1)
Which looks like:
Result:
This, INDIRECT(ADDRESS(ROW(), COLUMN()), refers to the cell itelf, and -1 column offset argument refers to column to left.
You can then do copy paste as values to convert formulas to hard coded values.

Insert a value to a cell in excel using formula in another cell

I need to insert a value to a cell in excel using formula in another cell.
Say
A1 = "Test"
B1 = formula to insert A1 to C1
C1 = A1
Can I write a formula in B1 to insert value in C1?
I don't need any formulas in C1.
If Yes, What should be the formula?
If there it is next to the cell AND has no value in B2, it is possible, otherwise it is not.
Use Split()
Split(CONCATENATE("Text for B1#Sperator$$",A1),"#Sperator$$",FALSE)
It really depends.
EDIT
Out dated. Only works in google sheets.
Without using VBA or formulas in column C you can't achieve this.
A simple solution using formulas:
In cell C1, paste the following formula and drag it down:
=IF(B1=1;A1;"")
So if the content of cell B1 is equal to 1, your cell at column C will display the respective value of the same row at column A.

Excel copy a snippet cell A to cell B

This might be an easy one but in cell A2 I got a value of "123-123 Example Text" how can I make it copy only "123-123" and put the value in cell A3.
Second part in B2 I have "123-123" and in B3 I got "www.website.com/image/X.jpg" is there a way to tell it to take B2 and insert it instead of X in B3?
in A3 add the formula
=LEFT(A2,7)
in B3 you would need to put
="www.website.com/image/"&B2&".jpg"
Note:
If in the first part if the value 123-123 could be longer or shorter you would need to find the first space and then cut it to there using a formula like so
=LEFT(A2,FIND(" ",A2,1)-1)

copying the data from formulated column in Excell?

Hi I have three columns in MS Excell. The columns are A1,B1,C1. C1 is calculated automatically based on formula. The formula defined for C1 is(=A1+B1). I mean C1 is the sum of A1 and B1. Now the problem is I wanted to copy the value of C1 to A1 and want to make the B1 column filled with 0.
The moment i try to copy C1 and paste it into A1 the A1 is displaying as "#href" something like this. so how do i copy the value of C1(without Formula) and then paste it to A1?
When you copy from C1 in A1 Excel is trying to insert in A1 the same formula contained in C1 with your relative addresses adapted to the new position, so the new formula in A1 should sum the two cells at the left of A1, but there are not cells at the left of A1, so the #href error is telling you that.
To do what you want you should paste it like "value". You find that option in the Paste command

Resources