+ Reply to Thread
Results 1 to 2 of 2

Too many variables? How can I fix this?

Hybrid View

  1. #1
    Registered User
    Join Date
    06-04-2012
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    7

    Question Too many variables? How can I fix this?

    I'm trying to perform a simple operation on a block of data. The start and end are variables, always in column A but could be any row. I have used =match on my Data sheet to find the start easily enough, based on specific text: =match("start",Input!A:A,0) which returns a number, in this case 19.

    Now I want to find the end of the block, which is a blank cell. There are blanks before the start aswell, so I need to start searching on the Input sheet, range A<result of last match, in this case 19>:A999.

    I've tried nesting but I keep getting a #name error. What's wrong with this formula?

    =match("",Input!A(value(Data!A1)):A999),0)

    That should translate as =match("",Input!A19:A999),0) shouldn't it?

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,616

    Re: Too many variables? How can I fix this?

    You could define your range as
    =INDEX(INDEX(A:A,match("start",input!a:a,0):INDEX(A:A,MATCH(9.99999999999999E307,A:A)))

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] finding an output from 5 variables in an array using exterior input user variables
    By Allsort in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-09-2013, 11:16 AM
  2. Replies: 3
    Last Post: 09-11-2012, 02:03 AM
  3. macro that finds variables in one column and enters values if variables found
    By xln00b in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-07-2010, 08:22 AM
  4. Multiple variables:bunch of variables
    By sbq80 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-19-2009, 04:22 PM
  5. Unzip Code - Works without Variables, Breaks with Variables...
    By AdamParker in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-06-2009, 02:35 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1