+ Reply to Thread
Results 1 to 7 of 7

[SOLVED] Working out a Gross Margin value from two locations

  1. #1
    Registered User
    Join Date
    12-01-2017
    Location
    Manc, England
    MS-Off Ver
    2007
    Posts
    20

    [SOLVED] Working out a Gross Margin value from two locations

    Good morning all,

    I am struggling with the following, if you can help:

    In the attached test file you'll be able to see that I have data pulling through to the Cont 1 tab based off the contractor's name. From this my other columns populate with vlookup data from the Starters tab.

    My issue is that with the GM (column K) my formula looks to the starters tab to calculate the pay and charge rate to figure out the gross margin, however, as there are multiple categories for pay and charge I need the formula to be able to look past a zero value if found first and look to the next pay category.

    So at present it says based on a match of the contractor's name, bring me Y2-X2*5. On the Starters tab that value is zero. I need the formula to be able to then see that it is zero and move on to AA2-Z2*5.

    Is this possible?

    Thank you all for your help.
    Attached Files Attached Files
    Last edited by Chambew; 02-27-2018 at 05:38 AM. Reason: Wrong attachment

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Working out a Gross Margin value from two locations

    please recheck your attached file
    The Contractor name not found in Starters File and the GM is column L of IT sheet
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    12-01-2017
    Location
    Manc, England
    MS-Off Ver
    2007
    Posts
    20

    Re: Working out a Gross Margin value from two locations

    Thank you, attachment corrected.

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Working out a Gross Margin value from two locations

    k6=SUMPRODUCT(INDEX(Starters!$X$2:$AA$11,MATCH($F$6,Starters!$C$2:$C$11,0),)*{-1,1,-1,1})
    Try this and copy towards down

  5. #5
    Registered User
    Join Date
    12-01-2017
    Location
    Manc, England
    MS-Off Ver
    2007
    Posts
    20

    Re: Working out a Gross Margin value from two locations

    Hi, that does work, thank you.

    Apologies, but I missed a corollary question from my first post and the example.

    In column L I have - =(Starters!Y2-Starters!X2)/Starters!X2 in order to figure out the difference between the two figures as a percentage, can you assist me with this also? Thank you for your help, it is greatly appreciated.

    Kind regards,

  6. #6
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Working out a Gross Margin value from two locations

    =SUMPRODUCT(INDEX(Starters!$X$2:$AA$11,MATCH($F$6,Starters!$C$2:$C$11,0),)*{-1,1,-1,1})/SUMPRODUCT(INDEX(Starters!$X$2:$AA$11,MATCH($F$6,Starters!$C$2:$C$11,0),)*{1,0,1,0})
    my be this will work

  7. #7
    Registered User
    Join Date
    12-01-2017
    Location
    Manc, England
    MS-Off Ver
    2007
    Posts
    20

    Re: Working out a Gross Margin value from two locations

    Thank you very much, that has worked brilliantly, thank you!

+ 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. Gross Margin
    By Barbara N in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-15-2017, 01:06 AM
  2. Net Margin Formula Using SUM= To Calculate Gross Margin Cells
    By jezrp22 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-26-2015, 08:41 PM
  3. Calculating Negative Gross Margin
    By igendreau in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-11-2012, 02:31 PM
  4. Gross margin rate and mix formulas
    By rateandmix in forum Excel General
    Replies: 0
    Last Post: 07-16-2012, 02:21 PM
  5. [SOLVED] Gross Margin Schedule
    By SeaTiger in forum Excel General
    Replies: 0
    Last Post: 04-06-2006, 06:50 PM
  6. Calculation of Gross Margin in a pivot table
    By Martin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-05-2006, 02:40 PM
  7. gross profit margin formula
    By julmcgrath in forum Excel General
    Replies: 2
    Last Post: 03-11-2005, 11:06 AM

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