how to change column in formula?

jamiguel77

Active Member
Joined
Feb 14, 2006
Messages
270
Office Version
  1. 2016
  2. 2010
  3. 2007
Platform
  1. Windows
  2. Web
Libro1
ABCDEFGHI
12748.92.550011000
Hoja1
Cell Formulas
RangeFormula
I1I1=A1*G1


i have in: I1 a formula: c in Cell H1 i have a value of 1

here is the goal:

if in H1 is 3: the formula in I1 would be changed automatically to: =C1*G1
if in H1 is 5: the formula in I1 would be changed automatically to: =E1*G1

how to do?

thanks
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,774
Office Version
  1. 365
Platform
  1. Windows
How about
Excel Formula:
=INDEX(A1:F1,H1)*G1
 
Solution

jamiguel77

Active Member
Joined
Feb 14, 2006
Messages
270
Office Version
  1. 2016
  2. 2010
  3. 2007
Platform
  1. Windows
  2. Web
Yes i understand... now Index function, thanks
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,774
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
1,129,996
Messages
5,639,448
Members
417,090
Latest member
schoelleya

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
Top