changing column number in formula automatically

L

Legacy 69493

Guest
Thanks for your help in creating an IF statement but now I would like to change the column numbers automatically and have the formula in every column.

ie. =If(O32="G",N32*0.06,"")
then I want this to change to
=IF(O33="G",N33*0.06,"")

Is there a way of having the column numbers change automatically in every column so that I don't have to enter this to over 200 columns?

Thanks
 
I was playing around with andrews formula and it does work if the GST is in row 32 so maybe I haven't made my self clear.

What I need to do is take different items in each row and have the GST calculated IF GST is applied to that item. It is not always applied and I want a formula that will look at each row seperately and figure out the GST IF GST is applicable. How I want it to know if it is applicable is by putting a G in the O column.

Sorry if I am confusing you.
 
Upvote 0

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
I was playing around with andrews formula and it does work if the GST is in row 32 so maybe I haven't made my self clear.

What I need to do is take different items in each row and have the GST calculated IF GST is applied to that item. It is not always applied and I want a formula that will look at each row seperately and figure out the GST IF GST is applicable. How I want it to know if it is applicable is by putting a G in the O column.

Sorry if I am confusing you.

I think that I understand your problem.
Please read my answers and think what I wrote, so you have a solution.

I think.:confused: :confused: :confused:

Use your own formula with no "$" signs an copy it to all rows.

Pekka
:eek: :eek: :eek:
 
Upvote 0
I tried the formula that I had posted and it still doesn't work. I comes up with no results but if I change the O32 and N32 in the formula to match with a line that has a G then the formula works. But I was trying to get around having to change the formula for each line.
 
Upvote 0
Make a simple test.

Put in A1 number 1
Put in A2 number 2
Put in A3 =+A2+A1
Copy A3 down

Formulas should look like this now in cells A1:A6:
1
2
=+A2+A1
=+A3+A2
=+A4+A3
=+A5+A4

If they don't , there is something wrong with your Excel.

Pekka
:eek: :eek: :eek:
 
Upvote 0

Forum statistics

Threads
1,216,027
Messages
6,128,370
Members
449,444
Latest member
abitrandom82

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