Using the text from another cell in a formula

Jak7217

New Member
Joined
Jan 11, 2019
Messages
31
Office Version
  1. 365
Platform
  1. Windows
Hey all:

First post here, thanks in advance.

I want to pull text from another cell and add it to myformula. For example, I have a formula below where I am referencing a differenttab of the workbook.

=SUMIF(Sheet1!C119:C123,2015,Sheet1!F119:F123)

I would like to be able to modify this formula so that I canreference a cell with “Sheet1” written in it. If we pretend “Sheet1” is in cellA1, in my mind it would like something like this.

=SUMIF(A1!C119:C123,2015,A1!F119:F123)

Any ideas?


 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hi & welcome to MrExcel.
Try
=SUMIF(INDIRECT(A1&"!C119:C123"),2015,INDIRECT(A1&"!F119:F123"))
 
Upvote 0
2 options, depending on how much flexibility you need...
=SUMIF(INDIRECT(A1&"!C119:C123"),2015,INDIRECT(A1&"!F119:F123"))
=SUMIF(INDIRECT(ADDRESS(119,3,,,A1)&":"&ADDRESS(123,3)),2015,INDIRECT(ADDRESS(119,6,,,A1)&":"&ADDRESS(123,6)))
 
Upvote 0
Glad we could help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,215,580
Messages
6,125,654
Members
449,245
Latest member
PatrickL

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