Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Referencing ranges in formula arrays

Status
Not open for further replies.

Stevo911

Technical User
Apr 26, 2005
33
ZA
Background

simple eg.

A B C
apple pear FALSE
grape apple TRUE
orange pineapple FALSE

Using formula array:
={OR(EXACT(B2,A2:A4))}

and fill-down in column C to get answers.

My Question:
For different lengths of column A, how can one use an input box, lets say row_num = application.inputbox("how many rows?") and then substitute this into the formula.

eg. Selection.FormulaArray = "=OR(EXACT(RC[-1],*some reference using row_num*))"

I've tried to reference the cells using index numbers, and A1 notation but VBA doesnt like my efforts.

Any help would be GREATLY appreciated.
Thanks
 


OFFSET spreadsheet function or other dunamic range naming techniques.

How can I rename a table as it changes size faq68-1331



Skip,

[glasses] [red]Be advised:[/red]When Viscounts were guillotined just as they were disclosing where their jewels were hidden, it shows to go that you should...
Never hatchet your Counts before they chicken! [tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top