Is it possible to have one cell where you add in a value and in another cell the values are added together?
For example, I have cell A1 where I put the value 10, then cell B1 is now 10. Then Cell A1 is now blank so that when i add another value, lets say 5, cell B1 would now be 10+5, so 15. Then allow this to continue to repeat and sum the values being added to A1
Related
Is there a way to create a formula in one cell that will change the value in another cell based on some criteria, without scripting? Example: cell a1 contains a numerical value. cell b1 contains a value from a drop-down list, say, "YES,NO". If cell b1 is set to "YES" I want to remove (set to zero) the value in cell a1. What I'd like to do is have a formula in cell c1 that interrogates b1 and sets the value in a1 accordingly. Is the only way achieve this writing code and using setValue?
you cant remove it without a script. you can visually hide it in various ways. if the A1 is subject of further sum (as in your case per your comment) the sum formula can be always altered to reflect desired output. example:
if your formula is
=SUM(A1, C5, D22)
you can do
=SUM(IF(B1="YES", 0, A1), C5, D22)
Use the following on the cell you need the calculation (or zero) on:
=IF (B1="YES",0,SUM(A:A))
Using the given formula, you would do the SUM calculation for the whole Column A if the value on B1 is "YES", if not, then a 0 would be placed on the cell you put the formula on.
In Excel how can I create a cell function which does the following ...
If cell C1 contains the value 6, I want cell B1 to be the contents of cell M1,
If cell C1 contains the value 7, I want cell B1 to be the contents of cell N1
and so forth, increasing by one column (M,N,O...) at a time.
I've tried with the functions INDEX, IF , MATCH and, LOOKUP .
Use INDEX and simple math:
=INDEX(1:1,C1+7)
so i have some data in column A, like this,
(A1)12 (B1)
(B2)1
(B3)2
(B4)3
(A5)15 (B5)4
(B6)1
(A7)32 (B7)2
but after each value in column, there are some random number of empty cell and then another value. so the formula i am using is to calculate data between A1 and A5 in column C is
=$A$1+(B2/4)*($A$7-$A$1)
same for the next two values in column A between A5 and A7. ,
but the thing is i have a very high amount of data, is there any option that i dont have to specify cell in the above formulae, it automatically selects the non empty cells in the formulae along with their cell numbers.and cell difference.![enter image description here]
I'm trying to create an if function that if one cell is equal to either 1, 2, 3,4 ,5, then it copies that entire line to another sheet in the same workbook. Is this possible? Or is it some kind of other formula that can do this?
if you want a formula to see if the value of a cell is a match to a list/Array of values you can use the following
=IF(ISNA(MATCH(A1,{1,2,3,4,5},0)),"Cell Does Not Contain One Of The Values",A1)
when you enter this formula into a cell if A1 = 1,2,3,4 OR 5 then the cell you entered the formula in will return the value of A1. If A1 does not equal any of the values the cell you enter this formula in will then say "Cell Does Not Contain One Of The Values"
If you want to do this for an an entire row then you can LOCK in the first A1 reference and change the last one and drag this formula over.
So, in Sheet2 Cell B1 you can put:
=IF(ISNA(MATCH('Sheet1'!$A$1,{1,2,3,4,5},0)),"Cell Does Not Contain One Of The Values",'Sheet1'!B1)
and if the value in A1 is one of those value of B1 on Sheet2 will equal the value of B1 on Sheet1. Then if you drag the formula across the entire column it will adjust the results to the proper cells for you.
You can do this, e.g.:
=IF(OR(Sheet1.$A$2 = 1, Sheet1.$A$2 = 2, Sheet1.$A$2 = 3, Sheet1.$A$2 = 4, Sheet1.$A$2 = 5), Sheet1.A8, 0)K20
In this case, the value, which you want to proof will be saved in A2 and the row 8 will be copied to the selected row if the value is an element of {1,2,3,4,5} and will be 0 if not.
For putting this through the whole row, you can follow the steps showed on this page:
http://www.extendoffice.com/documents/excel/867-excel-apply-formula-to-entire-column-row.html
Excel is quite a bit redundant. There's no possibility of making one command for multiple cells. Each function is made for 1 cell.
Is there a formula in excel to allow you to obtain the value of another cell WHEN a second cell was value X?
For example, something like:
=GETWHEN(A1,3,B2)
Which would return B2's cell value when A1 is value 3.
So if let's say you had a cell B2=4*B1. And B1 you set to 3, so B2 would show 12. But I want to make a row of entries to plot what B2 will be when A1 is 1, 2, 3, 4, 5 etc...
What could I put under A1 Values?
EDIT: I'm not looking for a if like in the conditional sense. I'm looking for the value WHEN (edited now)
You're thinking about data tables.
Provided you have your values in E2:E6, and your formula in B2:
Enter =B2 in cell F1.
Select E1:F6.
Go Data - Data table and put B1 into the Row input cell box (B1 being the cell on which B2 depends).