I wanna ask you. I have value which I want divide and sum. I will give you example:
Which I want series sum
A1 Value 5 B1
A3 Count 4 B3
10,41666667 **B5**
=SUM(B1;B1/2;B1/3;B1/4)
I want when I change count value formula will calculate automaticaly as formula "=SUM(B1;B1/2;B1/3;B1/4)"
Count value continues up to n, formula should work even if count value 1000.
Please help. I hope so I could explain.
Try this formula
Formula used in cell B5
=SUM(B1/ROW(INDIRECT("1:"&$B$3)))
Or you can use SUMPRODUCT Function as well, to avoid the CTRL+SHIFT+ENTER
Formula used in cell D5
=SUMPRODUCT(D1/ROW(INDIRECT("1:"&$D$3)))
Related
I have a simple question on Excel for which I cannot easily find an answer on the web.
Let us assume that I want to sum the cell A1 and the cell AN where N is a number in a given cell.
How can I easily use the sum function to achieve this ?
Example :
If n=2, I sum A1 and A3.
If n=10, I sum A1 and A11, etc. where the number n is the cell, let's say, B1.
Thanks for your help !
Use this formula
=sum(A1, indirect("A"&(B1+1)))
I would use the non volatile INDEX:
=SUM(A1,INDEX(A:A,B1))
Where B1 is the cell in which N is placed.
IF you meant to sum all cells between A1 and AN then we would use:
=SUM(A1:INDEX(A:A,B1))
Unlike Indirect this formula is not Volatile and will only recalculate when the data changes.
I need to make a sum of 12 rows every 3 rows in excel. That is, I need to sum first from C4 to C15, then from C7 to C18, and so on.
You can use OFFSET function for this, also volatile, but shorter!
Assuming first formula in E2 copied down
=SUM(OFFSET(C$4,(ROWS(E$2:E2)-1)*3,0,12))
I prefer this because it explicitly contains all the required information
C4 = first cell to sum,
E2 = first cell with formula,
3 = row increment,
12 = number of cells to sum
The above gives you the sums on successive rows from E2 (or any other chosen cell) down. If you actually want the sum to be shown every 3 cells e.g. on the first row for each sum then that's simpler - try this formula in D4 copied down
=IF(MOD(ROWS(E$2:E2),3)=1,SUM(C4:C15),"")
.......or even easier.....just put this formula in D4
=SUM(C4:C15)
....leave D5 and D6 blank, then select the range D4:D6 and drag down
You can also use the non-volatile INDEX function
=SUM(INDEX(C:C,ROWS($1:1)*3+1):INDEX(C:C,ROWS($1:1)*3+12))
This works because INDEX returns a reference so you can use the normal Ref1:Ref2 notation for a range.
=SUM(INDIRECT("C"&ROW(1:1)*3+1&":C"&ROW(1:1)*3+12))
Be warned that INDIRECT() is a volatile formula... This means that any change made anywhere in the workbook this formula will recalculate and can cause performance issues.
I need a help with Excel. Can't figure out the formula for a number to round down to 10010.
There is a column which calculates numbers and I want when the result is over 10010, to round it down and display it. Else to show 0.
Thanks!
if you would like to change the number (cell A1) to 10010 if it is greater than or equal to 10010, and if it is blank or less than 10010 set it to 0 this formula would work for you.
=IF(A1>=10010,10010,0)
In response to your comment if in cell B1 you put the formula:
=MIN(IF(A1:A20>10010,A1:A20))
...and make sure you press CTRL-SHIFT-ENTER instead of just ENTER when coming out of formula. This will turn it into an array formula and will return you next largest value to 10010 from you range A1:A20.
In cell C1 can then just put:
=B1-10010
Hope this helps.
I'm trying to calculate the total from D2 to D17 only if the cells between C2 to C17 contain the number "9". I tried to use the formula =SUMIF(C2:C17,9,D2:D17), but it wouldn't work!
The odd part is that if I put in another criteria such as "4" or 50", it would return the sum. It just doesn't work with some numbers.
Here's a screenshot of the
SUMIF if I put 9 as my criteria
Thank you for any help
Look like the formula is fine, but you are summing the value "0" to the highlighted cell containing the formula, because D17 = 0, and that cell corresponds the "9" value - so the sum you get is, as expected, 0.
I'd like to ask how can I use if and else to my calculation in Excel. Here's the case:
A1=usd, B1=php, C1=conversion amount in usd, D1=total amount in usd
Question: The formula will place in cell d1. I want this way, if I put amount into cell a1 it will only lookup the amount and displayed in cell d1 or if I'm going to put amount in cell b1 and c1, cell d1 calculates the conversion of cell b1 and c1 (a1/c1)? Can you provide me formula or code?
Try
=IFERROR(IF(A2<>"",A2,B2/C2),"")
You can modify the conversion as per your wish.
Note: It will calculate conversion only if the A2 cell is blank or else it will display the value of A2.
Let me know if it works.