Named Formula Error: INDIRECT Returns #VALUE Error Inside SUMIFS

jpread

New Member
Joined
Aug 10, 2017
Messages
1
Hello,

I am working on a large financial file and have noticed an error that keeps popping up. The error occurs when the formula below is used indirectly with a Formula Name (e.g. Test_Indirect). When used directly the formula works as intended, but if the formula name is called instead, the INDIRECT portion returns a #VALUE error. In the example below, G1 uses the formula name and does not work, G2 uses the actual formula and works.

The only difference I see is the contents of INDIRECT are enclosed in curly brackets when used in a formula name (see photos)

Example:

Formula Names:

Dates_Column_Letter="Sheet1!"&CHAR(64+COLUMN(Sheet1!$A:$A))
Next_Amount_Min_Row=ROW(Sheet1!$A$25)

Test_Indirect=SUMIFS($D:$D,$A:$A,">"&A2,$A:$A,"<="&INDIRECT(Dates_Column_Letter&Next_Amount_Min_Row),$B:$B,"Payment"))

G1 =Test_Indirect

G2 =SUMIFS($D:$D,$A:$A,">"&A2,$A:$A,"<="&INDIRECT(Dates_Column_Letter&Next_Amount_Min_Row),$B:$B,"Payment"))
 
Last edited by a moderator:

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
You cant attach files on this forum.
See if you can edit your post and remove the unwanted info, it's cluttering up the thread and you may not get an answer if people can be bothered to scroll down far enough.

Post a sample spreadsheet with expected results, remove any sensitive data, create a mockup example if necessary.
Upload the file to an online storage site and post a link to it, though some people may not download the file for fear of viruses.
 
Upvote 0

Forum statistics

Threads
1,223,744
Messages
6,174,253
Members
452,553
Latest member
red83

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