I am trying to put a formula into a sheet that is pulling data from another sheet within the same workbook. Ultimately, I am trying to calculate the gross margin based on a specific customer. The sheet I am putting the formula into has a cell with a customer name in it that can be changed to various customers. I need the formula to review the data sheet, find this customer from a specific column, and then calculate the gross margin based on that.
I can calculate the total margin of all customers easily, but I need it to calculate it based on specific customers.
My existing formula is:
=SUMIF('Install Log'!E4:E1000,C4)*'Install Log'!AL4:AL1000/'Install Log'!D4:D1000
1) Install Log E4:E1000 = the range on the data spreadsheet that has various customer names
2) C4 = the location on the other spreadsheet where the customer name can be input
3) the remaining part of the formula is the calculation of Gross margin (sum of all Profits/sum of all revenue)
Any help would be appreciated. Thanks!
Bookmarks