+ Reply to Thread
Results 1 to 10 of 10

Need vba or excel formula to calculate total sales with percentage in L:L column

  1. #1
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Need vba or excel formula to calculate total sales with percentage in L:L column

    Dear expert

    I have week end sales report i want find total sales by discount for day1 4% ,day2 5% after two days all are 15% only for Pencil and Pen product, rest of all no discount



    find the attachment
    Attached Files Attached Files

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Need vba or excel formula to calculate total sales with percentage in L:L column

    Like This?

    Data Range
    L
    2
    TOTAL SALES WITH COMMISSION
    3
    =H3*0.04+F3*0.05+0.15*(D3+B3)
    4
    =H4*0.04+F4*0.05+0.15*(D4+B4)
    5
    =SUM(A5:H5)
    6
    =SUM(A6:H6)
    7
    8
    9
    TOTAL SALES WITH COMMISSION
    10
    =J10*0.04+H10*0.05+0.15*(F10+D10+B10)
    11
    =J11*0.04+H11*0.05+0.15*(F11+D11+B11)
    12
    =SUM(A12:J12)
    13
    =SUM(A13:J13)
    Last edited by xladept; 07-31-2016 at 04:11 PM.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Re: Need vba or excel formula to calculate total sales with percentage in L:L column

    formula what you suggest Its Kind of manually reference selection. I want fill down if formula with criteria conditions for Pencil and pen becoz i have data till 20000 rows i cant do select the range manually

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Need vba or excel formula to calculate total sales with percentage in L:L column

    If you restructure your data into a table with dates down the side and products across the top, your calcs will be much simpler.

    The way you have your data structures makes creating a copy-able formula very complex
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Need vba or excel formula to calculate total sales with percentage in L:L column

    Or you may try something like this.....

    In L5
    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  6. #6
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Re: Need vba or excel formula to calculate total sales with percentage in L:L column

    OK sir Please Restructure data into table with dates down as your convenience, make it simple. i dont know how to do restructure.

  7. #7
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Need vba or excel formula to calculate total sales with percentage in L:L column

    Forgot to include the condition for Rubber and Ink.

    Please try in L5
    Please Login or Register  to view this content.
    and copy down.

  8. #8
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Need vba or excel formula to calculate total sales with percentage in L:L column

    Please find the attached and on New Layout Sheet, you will find that the data is organized in a tabular form in col. A:D and formatted as an Excel Table.
    So you may keep on adding data down the rows.

    You will also find two pivot tables next to the source data table to get the visual information from the source data. Keep one which suits your requirement.
    Once you add more data in the source table, right click on any cell in the pivot table and choose Refresh to update the pivot table.

    This layout is easy to maintain. See if that helps.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Re: Need vba or excel formula to calculate total sales with percentage in L:L column

    @ sktneer It works from formula what you gave above!! Thanks alot

  10. #10
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Need vba or excel formula to calculate total sales with percentage in L:L column

    You're welcome.

+ 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. formula in Excel to calculate rolling daily average of sales total by date
    By Geekgurl in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-17-2014, 05:30 PM
  2. Replies: 1
    Last Post: 12-01-2013, 12:21 PM
  3. Replies: 1
    Last Post: 11-19-2013, 12:52 PM
  4. Formula to calculate percentage sales
    By stokie21 in forum Excel General
    Replies: 3
    Last Post: 12-13-2007, 06:42 PM
  5. [SOLVED] formula to calculate sales tax from total sales
    By Deanna in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-05-2005, 04:05 PM
  6. [SOLVED] How do I calculate a MTD total - yesterdays sales in Excel?
    By skcaton in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  7. How do I calculate a MTD total - yesterdays sales in Excel?
    By skcaton in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07:05 AM
  8. [SOLVED] How do I calculate a MTD total - yesterdays sales in Excel?
    By skcaton in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM

Tags for this Thread

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