copying the data from formulated column in Excell? - excel

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

Related

Highlight A1 if A2 does not equal A1, B1 does not equal B2, and so on

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

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.

convert dynamic number of rows to fixed number of columns [duplicate]

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.

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.

Resources