Defined Name

DaveRadford

Board Regular
Joined
Feb 18, 2010
Messages
63
I have a defined name which uses OFFSET and COUNTIF:

=OFFSET(WSList!$A$2,0,0,COUNTIF(WSList!$A$2:$A$4,">"""),2)

As i want to show a list that can change in size i do not want it showing blanks hence this defined named, it will only display data and no blanks.

I wanted to use this defined name in a form and reference the defined name in rawsource filed in a list box on a form.

This used to work but now it errors with:

"Could not set the ROWSource property. Invalid Property Value"

Although i have made changes to the workbook none to do with the defined names or formatting of the data.

Thanks,
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi Dave

I would check the definition of your DNR because the one you posted looks like the countif points at a maximum range of 3 rows (A2:A4) which isn't very large. I would probably look at using COUNTA instead of COUNTIF too.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

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