Results 1 to 3 of 3

Thread: Long Formula in cell and REF!

  1. #1
    Junior Member
    Join Date
    Jul 2013
    Posts
    3
    Rep Power
    0

    Long Formula in cell and REF!

    Dear all,
    I have some sheets with raw (source) data. First I copy them from the external XLS or MHTML file. I have button with macro for these actions.
    I the next sheets I calculate Initial/Final Balance with static formulas in cells with fields from source or from custom fields.

    I lost some of the columns when I replace data with in source sheets ....

    Code:
    =D2+SUM(SUMIFS(DB_001!$M:$M;DB_001!#REF!;B2;DB_001!$R:$R;">=1";DB_001!$R:$R;"<=3";DB_001!$N:$N;{"ZC02","PAL"}))+SUMIFS(DB_002!$J:$J;DB_002!$B:$B;"ZCG2";DB_002!#REF!;">=1";DB_002!#REF!;"<=3";DB_002!$F:$F;B2)-(--SUM(SUMIFS(DB_002!$J:$J;DB_002!$B:$B;{"ZPAL","ZC02"};DB_002!#REF!;">=1";DB_002!#REF!;"<=3";DB_002!$F:$F;B2))-(-SUMIFS(DB_003!#REF!;DB_003!$E:$E;B2;DB_003!$F:$F;">=1";DB_003!$F:$F;"<=3")-(SUMIFS(DB_001!$M:$M;DB_001!#REF!;B2;DB_001!$R:$R;">=1";DB_001!$R:$R;"<=3";DB_001!$N:$N;"ZCR1"))))
    I dont understand why ?!?!
    How can I avoid it?
    Thank you in advance for help!!
    Last edited by rodich; 06-23-2014 at 03:04 PM.

  2. #2
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,123
    Rep Power
    10
    Check the macro in which any columns get deleted. Try to clear the columns rather than delete, which causes the REF error.
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

  3. #3
    Junior Member
    Join Date
    Jul 2013
    Posts
    3
    Rep Power
    0
    Ok. I'll try to make the formulas in first step and after that will try to delete
    Thak you for advice!!

Similar Threads

  1. Replies: 10
    Last Post: 08-31-2013, 06:56 PM
  2. Replies: 9
    Last Post: 08-20-2013, 04:39 PM
  3. Sum Of The Digits In A Cell Using Formula
    By venkat1926 in forum Excel Help
    Replies: 0
    Last Post: 04-30-2013, 07:11 PM
  4. Find Last Used Row In A Column Using Long Variable
    By xander1981 in forum Excel Help
    Replies: 2
    Last Post: 01-27-2013, 08:53 PM
  5. Formula To Identify A Cell Has Duplicate Words
    By Admin in forum Excel and VBA Tips and Tricks
    Replies: 0
    Last Post: 07-03-2011, 05:52 AM

Posting Permissions

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