?
Solved

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

Posted on 2013-12-02
4
Medium Priority
?
394 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 total points
ID: 39690682
"=a3-indirect($A$1 & row())
0
 

Author Comment

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

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

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!
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

762 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