+ Reply to Thread
Results 1 to 4 of 4

Tidy a formula

  1. #1
    Registered User
    Join Date
    09-21-2015
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel:mac 2011
    Posts
    1

    Tidy a formula

    Hello all

    I was hoping someone could look at the below and advise how to 'tidy'. Ideally I'd like to copy the formula down but I'm not sure how I would do this in it's current form.

    I am trying to calculate how much I will be charged. I am charged £2/ week for each pallet, however the number of pallets I will use will go down equally over the course of time.

    AA column contains how many weeks I will have the number of pallets in E2.
    AB column contains my charge per pallet per week (£2).
    E column contains the number of pallets (total) I have.

    With the sample below, I have:

    (AA2*AB2*E2)+(AA2*AB2*(E2-1))+(AA2*AB2*(E2-2))+(AA2*AB2*(E2-3))+(AA2*AB2*(E2-4))+(AA2*AB2*(E2-5))+(AA2*AB2*(E2-6)).

    AA2 weeks I will be charged £2 multiplied by E2 pallets.
    PLUS
    AA2 weeks I will be charged £2 multiplied by E2-1 pallet.

    and so on.

    There must be a much better way of doing this! I am currently manually adjusting the E2-3 but there must be a way I can do this using FACT or similar.

    Any help will be greatly appreciated!

    Thank you so much in advance!

    Joanna

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Tidy a formula

    Maybe this array formula**:

    =SUM(AA2*AB2*(E2-{1;2;3;4;5;6}))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    If that doesn't work then tell us what's in the cells and what result you expect.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,245

    Re: Tidy a formula

    Try

    =AA2*AB2*SUM(OFFSET($E$2,0,0,E2,1))

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,594

    Re: Tidy a formula

    Try this
    =SUMPRODUCT(AA2*AB2*(E2-ROW($1:$6)))

+ 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. Nedd some help to tidy up this
    By miguelcubeles in forum Excel General
    Replies: 2
    Last Post: 11-12-2014, 08:41 PM
  2. Using a UDF to tidy a cell's formula output
    By butler342 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-12-2013, 08:31 AM
  3. Want to tidy up my workbook...
    By AlbertKJ in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 01-05-2012, 09:04 PM
  4. I want to use an "ISERROR" in my formula to tidy it up!
    By David_S_Walker in forum Excel General
    Replies: 4
    Last Post: 03-22-2010, 07:23 AM
  5. UserForm Tidy Up & Formula
    By tek9step in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-19-2010, 11:19 AM
  6. Can anyone help me tidy up?
    By drucey in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-05-2006, 03:10 PM
  7. [SOLVED] Tidy Up
    By Pete in forum Excel General
    Replies: 4
    Last Post: 05-09-2005, 01:06 PM

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