Add variable row number into formula without VBA

bukimi

Board Regular
Joined
Apr 12, 2017
Messages
105
Office Version
  1. 2019
Platform
  1. Windows
Hello!

I'm trying to create a table, where one sheet has references to values from other table. The trick is that sometimes one table is longer and sometimes shorter.
Let's say that now my formula in a cell looks like that:
Code:
=B3+Values!E16
I want it to be linked to a row that has cell with text "Summary" in the first column, not always to row 16. So, if "Summary" happens to be in row 31, formula should be equal to
Code:
=B3+Values!E31

I don't want to add built-in macros into my file, because it is sent to many people who complain about their security alerts then. Recipients can change "Values" table, but if they do that, the second table will have wrong numbers.

Is it even possible to do that with formulas only?
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Hi, can you try the below?

=SUM(B3,INDEX(Values!E:E,MATCH("Summary",Values!A:A,0)))
 
Upvote 0
its done easy with a lookup kinda formula thing however im not experienced with those as i never need cell references. but it will look something like this: =B3+(thelookupformulathing)
 
Upvote 0
Hi, can you try the below?

=SUM(B3,INDEX(Values!E:E,MATCH("Summary",Values!A:A,0)))

That works, I had to experiment a little to make it work accross many columns, but it seems to do what it needs to.
Thank you!
 
Upvote 0

Forum statistics

Threads
1,214,808
Messages
6,121,686
Members
449,048
Latest member
81jamesacct

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