Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-26-2017, 01:33 AM
paulkaye paulkaye is offline Entering a column value in a cell, to be used as part of a reference in a formula in another cell Windows 7 64bit Entering a column value in a cell, to be used as part of a reference in a formula in another cell Office 2007
Advanced Beginner
Entering a column value in a cell, to be used as part of a reference in a formula in another cell
 
Join Date: Nov 2011
Posts: 84
paulkaye is on a distinguished road
Default Entering a column value in a cell, to be used as part of a reference in a formula in another cell

(Row 8 is used here just as an example)



I'd like to have a formula in cell D8 that sums the values in cells x8-y8, where x and y (the columns) can be defined by typing the column values in one or more other cells. For example, I'd type "F" in cell D1, and "M" in cell D2, and cell D8 would responsively display the sum of cells F8-M8.

Is this possible?
Reply With Quote
  #2  
Old 02-26-2017, 03:29 AM
xor xor is offline Entering a column value in a cell, to be used as part of a reference in a formula in another cell Windows 10 Entering a column value in a cell, to be used as part of a reference in a formula in another cell Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

For example:

=SUM(INDIRECT($D$1&8&":"&$D$2&8))
Reply With Quote
  #3  
Old 02-26-2017, 03:53 AM
paulkaye paulkaye is offline Entering a column value in a cell, to be used as part of a reference in a formula in another cell Windows 7 64bit Entering a column value in a cell, to be used as part of a reference in a formula in another cell Office 2007
Advanced Beginner
Entering a column value in a cell, to be used as part of a reference in a formula in another cell
 
Join Date: Nov 2011
Posts: 84
paulkaye is on a distinguished road
Default

Thank you. Is there a way to have the row number automatically update when the formula is pasted in other rows, like would happen with a straightforward formula?
Reply With Quote
  #4  
Old 02-26-2017, 04:01 AM
xor xor is offline Entering a column value in a cell, to be used as part of a reference in a formula in another cell Windows 10 Entering a column value in a cell, to be used as part of a reference in a formula in another cell Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

=sum(indirect($d$1&row(8:8)&":"&$d$2&row(8:8)))
Reply With Quote
  #5  
Old 02-26-2017, 04:18 AM
paulkaye paulkaye is offline Entering a column value in a cell, to be used as part of a reference in a formula in another cell Windows 7 64bit Entering a column value in a cell, to be used as part of a reference in a formula in another cell Office 2007
Advanced Beginner
Entering a column value in a cell, to be used as part of a reference in a formula in another cell
 
Join Date: Nov 2011
Posts: 84
paulkaye is on a distinguished road
Default

That worked perfectly - thank you!
Reply With Quote
Reply

Tags
formula, references



Similar Threads
Thread Thread Starter Forum Replies Last Post
Entering a column value in a cell, to be used as part of a reference in a formula in another cell Formula for reference last non empty cell in row npn321 Excel 10 02-22-2017 11:42 PM
Entering a column value in a cell, to be used as part of a reference in a formula in another cell If value of cell A Matches a value in a Range of cells (column) then add value of cell A to cell C rick10r Excel 1 07-05-2016 12:07 PM
Entering a column value in a cell, to be used as part of a reference in a formula in another cell Entering a number in a cell causes it to fill with the color of a nearby cell Bill Martz Excel 1 04-23-2015 07:57 PM
Entering a column value in a cell, to be used as part of a reference in a formula in another cell Assign the value of a cell as a cell reference of another cell in Excel 2010 - How to? bharathkumarst Excel 7 10-13-2014 10:25 AM
How do I reference a merged cell in a multi column & row table in MS Word ('03')? jihanemo Word Tables 0 03-18-2009 08:33 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:00 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft