Fill blank value in Excel - 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.

Related

How can an empty cell have formula?

Imagine a sheet like this:
A1 = 1
B1 = 1
C1 = A1+B1
It has about 20 rows, to make the it work on next rows I have to copy the C1 content and paste it on column C.
But I noticed that I don't need to do that, and every time I put data on A and B column, the column next to B, which is C, automatically sums them up.
For example: In Row 21, C21 is empty, but If I put data in A21 and B21, the C1 automatically sums them up without having any formula in it.
How's that possible?
If you have a repeating pattern, Excel tries to carry it on for you.
So, if you have headers in A1/B1/C2, numbers in A2:B20, and a formula in C2:C20 to add the values in columns A and B, then type a value in A21, hit [Tab], type a value in B21 and then hit Tab or Enter, the Column C formula will automatically be copied into cell C21.
Testing exactly that (Add headers, start in A2: value, Tab, Value, Tab, =RC[-2]+RC[-1], Enter, loop), Excel started autofilling in cell C6 (i.e. the 5th row of data)
its possible that you have the autoadd function activated on that cellAuto-sum Excel, which do that add without put any formula.

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: Cell contents as formula requirements

I have a simple formula =sum(sum(d5*u300)/g4)
Is it possible to have the formula look up cell A1 for the d, a2 for the 5, a3 for the u, A4 for the 300, A5 for the the g and a6 for the 4. In other word each formula cell reference is made up of the contents of two other cells.This would be used in a selection process to produce a table for a graph. NON Excel Users could then use a drop down list in A1 to select column d etc. With thanks.
Do you mean something like:
=SUM(SUM(INDIRECT(A1&A2)*INDIRECT(A3&A4))/INDIRECT(A5&A6))
? Let's say A1 contains D and A2 contains 5. Then INDIRECT(A1&A2) will return the value of the cell D5.
However, I don't understand why you use SUM with just one argument.

Convert Dynamic Rows to Fixed Column

I need to convert dynamic number of rows to fixed number of columns. how to do it? Here is what I want to do:
A1 B1 C1
A2 B2 C3
- B3
convert to
A1 A2
B1 B2 B3
C1 - C3
Blank spaces are indicated by dashes(-).
Transposing with blanks works fine in Excel 2010, if you are having a problem transposing in an earlier version, add a column to the left of column A (new column A), fill it with any value, copy and paste special; transpose. then delete the added values. Remember you can not paste transpose into the space you are taking from, so paste into E1, then delete the source columns after paste.

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