+ Reply to Thread
Results 1 to 4 of 4

Expand With Range Formula

  1. #1
    Valued Forum Contributor
    Join Date
    11-15-2007
    Location
    England
    MS-Off Ver
    Office Pro 2003 / 2010
    Posts
    423

    Expand With Range Formula

    Hi,

    I have this piece of code which works perfectly -

    Please Login or Register  to view this content.
    I need to amend the vlookup part to include an if(isna - I have tried this as shown below but it doesn't work, I know it's to do with the positioning of the " but I can't seem to get it right.

    Please Login or Register  to view this content.
    If I were writing the formula normally it would look like this -

    =IF(ISNA(VLOOKUP(H4,'Amazon Stock Report'!$AH$2:$AK$14451,4,FALSE)),0,VLOOKUP(H4,'Amazon Stock Report'!$AH$2:$AK$14451,4,FALSE))


    Thanks for any help given.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    Try removing the " between )).
    If posting code please use code tags, see here.

  3. #3
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Expand With Range Formula

    .formula = "=IF(ISNA(VLOOKUP(H4,'Amazon Stock Report'!$AH$2:$AK$" & Lr1 & ",4,FALSE)),0,VLOOKUP(H4,'Amazon Stock Report'!$AH$2:$AK$" & Lr1 & ",4,FALSE))"

  4. #4
    Valued Forum Contributor
    Join Date
    11-15-2007
    Location
    England
    MS-Off Ver
    Office Pro 2003 / 2010
    Posts
    423

    Re: Expand With Range Formula

    Thanks yudlugar, just what I needed.

+ 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. Expand Macro Range
    By EmilyB in forum Excel General
    Replies: 5
    Last Post: 01-09-2011, 06:58 PM
  2. Expand a Range non VB
    By starbwoy in forum Excel General
    Replies: 3
    Last Post: 03-27-2008, 12:17 PM
  3. Range that expand
    By Juran in forum Excel General
    Replies: 1
    Last Post: 08-07-2006, 08:55 PM
  4. Expand range help
    By David in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-26-2006, 08:35 PM
  5. [SOLVED] Cannot Expand Named Range - when size of the Range exceeds
    By Snig in forum Excel General
    Replies: 1
    Last Post: 07-07-2005, 09:05 AM

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