Is it possible to create two input cells that are equal to each other without VBA code eg. A1 = A5 and A5 = A1. So when I change the value of A1 it affects A5 and change in A5 makes A1 change too.
No, it is not. It will require VBA.
A cell can have a formula or it can have a user supplied value but not both.
The only way is VBA.
You can have a third cell, say B1. Then have the user change B1 and equate A1 and A5 to B1:
=B1
Then the user only needs to change one cell and the others will update.
Strictly speaking it is possible, if the sheet is set to use iterative calculation, with using =B1 in A5 and =A5 in B1. However entering data in either cell will overwrite the formula, so would only work the one time.
Related
I want to be able to change the formula in once specific cell, and have it apply to an entire column. For a simple example in F1 I'll have =IF(A1>100,A1+5,A1+10).
Now I want column B to calculate the same way as F1 (lets call it the controlled cell). So B5 would be =IF(A5>100,A5+5,A5+10) and B6 would do the same for A6 value etc down each row.
I want it so all I have to do is change the cell F1, and all of B1's formula will change as well..
I know a few was to do this like instead of +5 and +10 I can put +F1 and F2 and just change those, however the real formula is a bit more complex so I would need quite a bunch of cells todo this for each of maybe 50 of these Im doing which will take up hundreds of cells and make the concept of an easy change pointless.
Just using my imagination but is there a method where I can set some kind of variable/wild card in F1 like =IF(VARIABLE>100,VAIRABLE+5,VARIABLE+10). Have B1 use F1 as the formula and then the variable = A1, and in next row use A2, then A3 etc.. That way when I want to change the entire columns formula I can just change F1 to IF(VARIABLE>100,VARIABLE+13,VARIABLE+23) and all of B will use the new formula?
In short I want to control a column of formulas by being able to change the core formula in one cell at top.
Current 365 Excel (2020 version 2202) 64 bit
What about using the "Format as Table" functionality?
You could specify a formula in the first row of the table and it would automatically be applied to the whole column. No need for a seperate "control cell".
Otherwise there's no way around a VBA macro:
Worksheet_Change -> Control cell affected? -> Copy formula to controlled cells
For example, I want two cells A1 and B2, that equal each other, and when I change A1, B2 changes with it, AND when I change B2, A1 changes with it.
I don't want something like =A1 in B2's formula, because if I change A1, B2 changes, but not vice versa.
This is more for convenience
The user enters any value in cell B3, this then makes the title Property 1 appear in B2. I need it to also populate the C2 field with the same formula and so on.
I have a formula in cell B2, which is basically; If cell B3 has information in it, B2 will populate with Property 1. I then need to apply that same formula to the next cell in the sequence - C2, with Property 2, so on and so forth.
=IF(NOT(ISBLANK(B3)),"Property "&COLUMN()-1,"")
The formula itself works very well, I have put it into all of the row 2 fields. The issue is that Excel prints pages with formulas. I've tried finding a way to stop printing the pages with only formulas, but there doesn't appear to be such a thing. As I don't know how many pages will be used, the formula needs to be clever enough to stop if the row 3 field is not populated.
I want to display data from 3 seperate cells in one sheet in a single cell in a different sheet in the same workbook. I believe it would require an if or statement but not sure how to write it.
Example: if B3 has data, then both B4 and B5 will be blank and the cell in the other sheet will display the B3 data
Example: If B3 is blank, B4 has data and B5 is blank, then the cell in the other sheet would display the B4 data
Example: If B3 is blank, B4 is blank and B5 has data, the cell in the other sheet would display the B5 data
How do I go about writing this function?
I would suggest something simpler. As whatever process inputs data on those cells seems to already determine data validation you can just concatenate all the cells with spaces added and trim the result. As only one cell is populated at a time from your description then only that cell's data will show on the output cell. It would look something like this:
=TRIM(B3&" "&B4&" "&B5)
Hope this resolves your concern. Cheers,
Thank you to all who posted solutions.
Here is what I am using and it works.
=RequestForm!B30&RequestForm!B38&RequestForm!B61&RequestForm!B85
I'd like to create a sheet that has a master formula. From there, I'd like to have a number of lower cells below use the same cell formula but apply it at it's relative position.
For example, in B1 i would write = a1+1.
In b2, I'd like it to apply the b1 formula, so I'd type in a formula to link to b1, but what I really want is the code in that cell, and to have it be relative, so the output would be a2+1.
In b3, id reference b1 but have it return a3+1.
In b4, id reference b1 but have it return a4+1
In b5, id reference b1 but have it return a5+1
This is a very simplified version of what I need. the benefit of doing this is I can change the formula in B1 and have it cascade to all the cells below it. In reality, I can't just drag down because I'm using a template for financial statements on a per market basis. we have dozens of markets and its a pain in the rear to copy/paste them down each time I want to make a simple formula change.
Thanks for any comments. I'd like to do this without VBA if possible. With VBA it gets easy.
Have you considered Named Formulas? If you use relative references in named formulas, then they will be adjusted if the named formula is used in another cell.
For example: Select cell B2, click Formulas > Name Manager > New, enter a name like B2Formula and let it refer to
=Sheet1!A1+1
No $ signs in the cell reference!!!
Now enter this formula into B2:
=B2Formula
Copy the formula down.
Now you decide you need a different formula in B2. So edit the named formula and change it to
=Sheet1!A1*2
and look at the sheet! You only edited one formula, but all the values in column B have adjusted to that new formula
Named Formulas are VERY powerful, especially when used with relative references. Remember that the references will be relative to the cell that is selected when the named formula is defined. Also, when you need to change a named formula with a relative reference, you need to select the same original cell before editing the named formula.