Excel Question

nickhutt06

New Member
Joined
Oct 11, 2024
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hello, so im trying to have a formula or whatever to make one cell take another cells formula BUT have a different column instead.
For example, my first cell has the total value of H1-H20 lets say. And i want my other cell to copy the first one but have I1-120 instead.
If someone can help and tell me if theres an easy way to do it that would be great! Thanks
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Welcome to the Board!

If you have the formula in cell H22 that is:
Excel Formula:
=H1-H20

If you were to copy that formula from H22 to I22, Excel will automatically change it to:
Excel Formula:
=I1-I20
for you.

The key thing here is where the cell you are "copying to" is in relation to where the cell you are "copying from" is.
The formula will automatically shift the rows and columns depending on how many rows/columns the new cell is from the original.

If the adjustments you want to make are arbitrary and follow no discernible pattern, I don't know that you are going to be able to do what you want without using VBA.

If you explain your actual data set-up and exactly what you are trying to do in detail, we may be able to make better suggestions.
 
Upvote 0
Welcome to the Board!

If you have the formula in cell H22 that is:
Excel Formula:
=H1-H20

If you were to copy that formula from H22 to I22, Excel will automatically change it to:
Excel Formula:
=I1-I20
for you.

The key thing here is where the cell you are "copying to" is in relation to where the cell you are "copying from" is.
The formula will automatically shift the rows and columns depending on how many rows/columns the new cell is from the original.

If the adjustments you want to make are arbitrary and follow no discernible pattern, I don't know that you are going to be able to do what you want without using VBA.

If you explain your actual data set-up and exactly what you are trying to do in detail, we may be able to make better suggestions.

Welcome to the Board!

If you have the formula in cell H22 that is:
Excel Formula:
=H1-H20

If you were to copy that formula from H22 to I22, Excel will automatically change it to:
Excel Formula:
=I1-I20
for you.

The key thing here is where the cell you are "copying to" is in relation to where the cell you are "copying from" is.
The formula will automatically shift the rows and columns depending on how many rows/columns the new cell is from the original.

If the adjustments you want to make are arbitrary and follow no discernible pattern, I don't know that you are going to be able to do what you want without using VBA.

If you explain your actual data set-up and exactly what you are trying to do in detail, we may be able to make better suggestions.
Thanks for the quick reply, i attached two images showing what i mean, if i complete the formula in image 1 i want image 2 to be the same thing but the column over if that makes sense.
 

Attachments

  • Screenshot 2024-10-11 135711.png
    Screenshot 2024-10-11 135711.png
    26.6 KB · Views: 7
  • Screenshot 2024-10-11 135726.png
    Screenshot 2024-10-11 135726.png
    23.7 KB · Views: 7
Upvote 0
Those formulas aren't even referencing the same rows, so I don't see how you can do that!
One is referencing row 18 and the other row 19.
 
Upvote 0
Those formulas aren't even referencing the same rows, so I don't see how you can do that!
One is referencing row 18 and the other row 19.
Im not talking about the rows.. it doesnt matter what rows there in. Im saying i have a formula in a cell and want that same formula in another cell but to show a different column. And if theres a formula to automically do it
 
Upvote 0
Your formulas are referencing different columns too (it isn't all just one column).
Is there any sort of logic to the cells/rows that you are selecting?
Are you selecting things that follow some sort of pattern or meet some sort of criteria?
If so, you may be able to build a formula that builds in that logic, and then it can easily be applied to any range that you want.

But otherwise the only way I can think of to do strictly what you are asking would be to use VBA.
 
Upvote 0
Your formulas are referencing different columns too (it isn't all just one column).
Is there any sort of logic to the cells/rows that you are selecting?
Are you selecting things that follow some sort of pattern or meet some sort of criteria?
If so, you may be able to build a formula that builds in that logic, and then it can easily be applied to any range that you want.

But otherwise the only way I can think of to do strictly what you are asking would be to use VBA.
Yeah its for work. I manually select the Tons in the first picture to the customer (There's 2 different customers that use this data) And i have to manually select the Amount in the next column that are the exact same data just one column over. So my main question is "if i select the data in the first picture for the Tons, is there a formula that takes that formula and takes it in a new cell but just one column over. (Example: F1=H6+H7+H8,is there a formula to get another cell lets say P1 to = the next column over I6+I7+I8 automically without manually having to match it up)
 
Upvote 0
As I described in my first post, whatever cell you are placing your original formula in, if you copy and paste it EXACTLY one column over to the right, it will automatically do that for you.
I.e. if you are placing your original formula in cell O1, and copy it over to P1 it will do what you want.

Otherwise, I think you would have to get kind of creative with VBA, or "helper" cells, or doing a Find/Replace to replace one column reference with another.
 
Upvote 0
How are you selecting the rows to add? If you add a helper column where you mark the rows you want, you can do something like this:

Book1
ABCDEFG
1Page 1
2SelectTons Amount
3
4C8.71$ 362.51
58.22$ 410.51
6E6.32$ 263.04
7C7.15$ 357.07
8E8.22$ 342.12
9C8.22$ 410.51
10E6.43$ 267.62
119.73$ 485.92
12C6.90$ 344.59
13E9.75$ 405.80
147.87$ 393.03
155.83$ 291.15
16E7.12$ 296.33
17C10.30$ 514.38
188.05$ 402.02
194.91$ 245.21
20TonsE6.63$ 275.94Amount
21ECCoastal7.64$ 381.54ECCoastal
2244.4741.281850.851989.06
Sheet1
Cell Formulas
RangeFormula
A22A22=SUMIFS($D$3:$D$21,$C$3:$C$21,"E")
B22B22=SUMIFS($D$3:$D$21,$C$3:$C$21,"C")
F22F22=SUMIFS($E$3:$E$21,$C$3:$C$21,"E")
G22G22=SUMIFS($E$3:$E$21,$C$3:$C$21,"C")
 
Upvote 0

Forum statistics

Threads
1,222,902
Messages
6,168,938
Members
452,227
Latest member
sam1121

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top