+ Reply to Thread
Results 1 to 6 of 6

ref error

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    05-14-2007
    Location
    London
    MS-Off Ver
    office 365
    Posts
    118

    ref error

    in the attached spread sheet data is pulled in from a folder containing individual spread sheets by selecing from the drop down list. it works very well. when i changed the formula in column o from =IF(AND(E6<=K7),-1,IF(AND(D6>=J7),1,0)) to =IF(AND(E7<=K8),-1,IF(AND(D7>=Jk),1,0)) i get a ref error each time i update the spreadsheet with new data. can any one solve this. funny thing is when i change the formula to =IF(AND(E7<=K7),-1,IF(AND(D7>=J7),1,0)) it works fine .hope you can help
    Last edited by censura; 06-03-2007 at 02:46 AM.

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by censura
    in the attached spread sheet data is pulled in from a folder containing individual spread sheets by selecing from the drop down list. it works very well. when i changed the formula in column o from =IF(AND(E6<=K7),-1,IF(AND(D6>=J7),1,0)) to =IF(AND(E7<=K8),-1,IF(AND(D7>=Jk),1,0)) i get a ref error each time i update the spreadsheet with new data. can any one solve this. funny thing is when i change the formula to =IF(AND(E7<=K7),-1,IF(AND(D7>=J7),1,0)) it works fine .hope you can help
    Hi,

    =IF(AND(E7<=K8),-1,IF(AND(D7>=Jk),1,0))

    should be

    =IF(E7<=K8,-1,IF(D7>=J7,1,0))
    or
    =IF(E7<=K8,-1,IF(D7>=K7,1,0))


    hth
    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Forum Contributor
    Join Date
    05-14-2007
    Location
    London
    MS-Off Ver
    office 365
    Posts
    118

    importing data

    i have changed the formula, thank you it does not solve the ref error though
    thank you for your help
    kind regards

  4. #4
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by censura
    i have changed the formula, thank you it does not solve the ref error though
    thank you for your help
    kind regards
    Hi,

    I was unable to duplicate your 'Ref' error, however the formula originally supplied was incorrect.
    I also need to kill your macro on opening the book.

    How is the Ref error currently being produced?

    What is the formula, copied from the sheet, that is giving the error?

    ---

  5. #5
    Forum Contributor
    Join Date
    05-14-2007
    Location
    London
    MS-Off Ver
    office 365
    Posts
    118

    importing data

    the ref error is being produced when i change the formula in column o from changing the e6 to e7 and the k7 to k8 and similarly changing d6 to d7 and j7 to j8 even when i use the correct formula you propossed.
    hope you can help
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by censura
    the ref error is being produced when i change the formula in column o from changing the e6 to e7 and the k7 to k8 and similarly changing d6 to d7 and j7 to j8 even when i use the correct formula you propossed.
    hope you can help
    I am still unable to reporoduce your stated error, the file you posted does not show any errors.
    The change you suggest would occur normally on a formula fill

    the formula

    =IF(AND(E6<K7),-1,IF(AND(D6>J7),1,0))

    could be reduced to

    =IF(E6<K7,-1,IF(D6>J7,1,0))

    however, either should work.

    As told before, I need to cancel your macro which errors at the line

    Set objFiles = objFSO.GetFolder(myPath).Files

    so if something in the macro causes the error I would not be aware of it.

+ 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