+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Automating formula cell values to maximum sheet rows

  1. #1
    Registered User
    Join Date
    12-16-2008
    Location
    Dublin
    Posts
    4

    Automating formula cell values to maximum sheet rows

    Hi
    I'm having awful problems trying to simplify a report so that users can simple drop in some data and the relevant formulas are updated;

    I have a number of sheets - Calc, raw and front page, my formula checks two columns (B and D) on the "raw" sheet and if the values are correct gives me a the sum on the frontpage, this works fine

    Please Login or Register  to view this content.
    The current total number of rows in the raw sheet are 125 but this will increase or decrease based on the data added to the sheet.

    I have a simple formula counting the number of populated rows on the calc sheet and I wish to replace the B125 and D125 with B(Calc!M2) in order to automatically update the correct number of rows as it changes.

    Calc!M2 has the following formula giving the current value of raw!B125
    Please Login or Register  to view this content.
    I have tried the INDIRECT function but cannot get it to work.

    Any help would be greatly appreciated as I am pulling my hair out
    Last edited by adamwill; 05-26-2010 at 11:48 AM. Reason: Told to

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Automating a report

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

  3. #3
    Registered User
    Join Date
    12-16-2008
    Location
    Dublin
    Posts
    4

    Re: Automating formula cell values to maximum sheet rows

    Changed formula to B:B and D:D and it worked

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Automating formula cell values to maximum sheet rows

    Try instead:

    =SUMPRODUCT(--(raw!B2:INDEX(raw!B:B,Calc!M2)=A16),--(raw!D2:INDEX(raw!D:D,Calc!M2)=B13))

    the sumproduct formula is, in essence, an array formula and is therefore, inefficient. So using it against the whole column, especially in 2007, will make it very inefficient.

    The formula above limits the range to your lastrow return.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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