+ Reply to Thread
Results 1 to 3 of 3

shorten formula problem

Hybrid View

  1. #1
    Registered User
    Join Date
    02-09-2010
    Location
    knottingley england
    MS-Off Ver
    Office 365 Excel
    Posts
    53

    shorten formula problem

    I am opening a new thread because I have marked my last post as solved.Ron corderre gave me the formula
    =INDEX(Sheet1!B1:B10,Sheet1!A1)
    which I tried in a blank workbook and it worked perfectly.I have now applied this formula to my workbook and it works but when the recieving cell has no number in it it returns #Value, I need this to be either blank or 0
    Regards Troysie

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: shorten formula problem

    Try this....
    =IF(Sheet1!A1>=1,INDEX(Sheet1!B1:B10,Sheet1!A1),"")

    or maybe...
    =IF(AND(Sheet1!A1>=1,Sheet1!A1<=10),INDEX(Sheet1!B1:B10,Sheet1!A1),"")

    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    02-09-2010
    Location
    knottingley england
    MS-Off Ver
    Office 365 Excel
    Posts
    53

    Re: shorten formula problem

    Thanks Ron the first one works a treat

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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