multiple commas in formual

artjohnson

New Member
Joined
May 23, 2009
Messages
6
I'm trying to get an understanding of this formula used in a routine that creates one validation list based on another. Can anyone tell me what the +1,2,,, portion of this formula does?

=OFFSET(INDIRECT(ADDRESS(MATCH(Val1Cell, Objects,0)+1,2,,,"Lists")),0,0,COUNTIF(Objects,Val1Cell),1)
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Normally a function would have arguments between all commas, but if you want to use the formulas default values, then you can leave them blank. Hence, the ",,,".

It looks to me like this part occurs in the address function. From Excel's help file, the syntax is "ADDRESS(row_num, column_num, [abs_num], [a1], [sheet_text])". Your function specifies values for row_num, col_num, and [sheet_text], but uses the default values for [abs_num] and [a1]. See Excel's help file on "Address Function" for more information.
 
Upvote 0
Thanks, that helps a lot. I had trouble parsing this with consecutive OFFSET, INDIRECT, ADDRESS, and MATCH functions. I'd guess then that the default value for [abs_num] is True and that the format [a1] is also going to be True. Excel's help file on "Address Function" confirms this.
 
Upvote 0

Forum statistics

Threads
1,215,364
Messages
6,124,507
Members
449,166
Latest member
hokjock

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