How to create a number as a decimal in excel - excel

I have two numbers for example
24,000 and 46,123
What I want is to create the number 24,000.46123 from this.
How can this be done in Excel? I wont know how long the second number is so I can't just divide by 100000 for example
24,000 + (46123/100000)

With values in A1 and B1 in C1 enter:
=A1+B1/(10^LEN(B1))
and set the format:

Try this in the cells of your spreadsheet:
Set cell A1 to 24000, set cell B1 to 46123, finally in cell c1 set =value(concatenate(a1,".",b1)

Related

How to count cells with a specific cell format containing zero?

How to count only cells containing zero with a specific cell format?
Take this list: A1 through A10 all contains zero. Cells A1, A4 and A5 of this range have a cell format which shows zeros as stars()*. Now, I'd like to count these three cells, stars.
You should be able to use =COUNTIF(A1:A10,0) if the value of the cell is 0. It does not matter the formating, if not try =COUNTIF(A1:A10,"*")

MS Excel direction change of drag down reference

Suppose, in Cell A1 of Sheet2 I use this formula.
=AVERAGE(Sheet1!A1:A10)
Now when I drag down from A1 to A3
A2 will be =AVERAGE(Sheet1!A2:A11)
A3 will be =AVERAGE(Sheet1!A3:A12)
However I want it in a transpose way. Such as,
A2 will be =AVERAGE(Sheet1!B1:B10)
A3 will be =AVERAGE(Sheet1!C1:C10)
Means, I will use drag down rather than dragging to side, yet I'll get the answer in transpose way, more specifically, I want to change column index rather than changing row index by dragging a formula down.
Is there any way to do that?
Thanks in advance.
One way is to use this formula in Sheet2 A1 and copy down
=AVERAGE(OFFSET(Sheet1!$A$1,,ROW()-1,10))
As you drag it down, ROW()-1 increases by 1 and this is the column offset from A1.
In A1, ROW()-1 returns 0 so there is no offset, but as you go down this increases by 1 and this is the column offset from A1 - so in row 2 this becomes B1 etc.
The 10 indicates the size of the relevant range to be averaged.
In A1 enter:
=AVERAGE(INDEX(Sheet1!$A$1:$Z$10,1,ROW()):INDEX(Sheet1!$A$1:$Z$10,10,ROW()))
and copy downward.
If you need more than 26 items, increase the Z in the formula.

How to input min/max values and have Excel generate cells for each number in the range

I have 2 cells A2 and A3, I will input a min value and max value respectively in each cell. Say 100 in A2 and 200 in A3.
I would like Excel to populate cells with values within that range. So Column B would have cells 1-101 filled in with 100,101,103,104,105....200.
Is there any easy way to do this or should I just stick to putting 100 in B1 and dragging it down?
In you first cell:
=IF(ROW(1:1)-1+$A$2<=$A$3,ROW(1:1)-1+$A$2,"")
Then drag/copy the cells down far enough to cover any combination you will have. You can fill the whole column if you want.
Microsoft is working on their Dynamic Arrays, Once released, a simple formula in the first cell of:
=SEQUENCE(A3-A2+1,,A2)
Will autmatically fill down the sequence without the need of dragging the formula down.

how do get number separately

I have number from 1 to 100 in column A1 to A100.
I am trying to achieve two results from data.
I want separately 1,2,3,4,5,6,7,8,9 and another one 10,20,30,40,50,60,70,80,90,100
Please help me
Maybe, in B1:
=1*(LEN(A1)=1)+2*(RIGHT(A1)="0")
double-click the fill handle and sort A:B on ColumnB.
This question is a bit vague. If you are looking to count by 10s, try adding a 10 in cell B1 and then adding the formula =B1+10 in cell B2. You can drag that formula down to count by 10s.
Let's say we want in column B "0, 1,2,3,4,5,6,7,8,9" and in column C "0, 10,20,30,40,50,60,70,80,90,100", put:
- =MOD(A1,10) as formula for the cell B1
- =INT(A1/10)*10 as formula for the cell C1
and then copy them to rest of the rows.

Excel, how to increment row number for the SUM function?

I have a Excel spreadsheet with original data in the range A1:A100
I want cell B1 to be the sum of A1:A5, B2 = sum(A6:A10), B3 = sum(A11:A15) and so on. What formula can I use for cell B1, that allow me to copy it to others B cells to achieve the above?
Thanks and Regards,
Nhan.
=SUM(OFFSET(A1,4*(ROW(A1)-1),,5))

Resources