Solved

Excel - How to build a formula with part of the value coming from another cell

Posted on 2013-12-02
4
390 Views
Last Modified: 2013-12-02
I have a completely basic formula in cell H2, for example:  "=A2-B2"

Now I want to dynamically enter a letter in cell A1, e.g. "C" so that the result that I see in H2 is the difference between cell A2 and C2.

Or another way of asking the question:  How can I modify my formula in H2 so that when I enter "C" into cell A1, the formula in H2  changes to "=A2-C2"  ?

My bumbling attempt at trial-and-error for cell H2, in case it clarifies my question:
"=A2-(A1)2"   No joy

Thanks
0
Comment
Question by:Dwight Baer
  • 2
  • 2
4 Comments
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39690641
=a2-indirect(A1 & "2")
0
 

Author Comment

by:Dwight Baer
ID: 39690674
Wonderful.  One little thing more ...
How can I modify that so that I can  copy it?  When I copy it into H3, for example, I need to formula to read "=a3-indirect($A$1 & "3")

Thanks again.
0
 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 500 total points
ID: 39690682
"=a3-indirect($A$1 & row())
0
 

Author Comment

by:Dwight Baer
ID: 39690694
Fantastic!!  Thanks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question