Formula result or Value as part of a range ... ???

miguems

New Member
Joined
Nov 7, 2005
Messages
9
Hello:

I need to define a range in a macro that I apply to different size spreadsheets and I need one of the values to be a formula result or the value of a cell, I'll use SUM as an example: instead of SUM(A1:K200) I need something like SUM(A1: (=COUNTIF(data, "<>""") + 5) or just
SUM(A1: Value(Z1)) where Z1 contains the result of a formula.

Can this be done?

Thanks in advance.

M.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
[b]Thank you!![/b]

That's exactly what I needed. I had the syntax wrong so now I was able to use it in an SUMIF and also Range. The macro works great now.

Thanks again!!!

Miguel. :biggrin:
 
Upvote 0

Forum statistics

Threads
1,215,020
Messages
6,122,712
Members
449,093
Latest member
Mnur

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