TempArray(Currenti, colSummaryDelivered) = _
"=SUMIF(Private!" & Range(Cells(intSheetStartRow, colBookingKey1), Cells(1000000, colBookingKey1)).Address(False, False) & _
", " & Range(Cells(intRow, colSummaryKey1), Cells(intRow, colSummaryKey1)).Address(False, False) & " & ""/Company""" & _
", Private!" & Range(Cells(intSheetStartRow, colBookingRevenue), Cells(1000000, colBookingRevenue)).Address(False, False) & ") + SUMIF(Private!" & Range(Cells(intSheetStartRow, colBookingKey1), Cells(1000000, colBookingKey1)).Address(False, False) & _
", " & Range(Cells(intRow, colSummaryKey1), Cells(intRow, colSummaryKey1)).Address(False, False) & " & ""/RoomHire""" & _
", Private!" & Range(Cells(intSheetStartRow, colBookingRevenue), Cells(1000000, colBookingRevenue)).Address(False, False) & ") + SUMIF(Private!" & Range(Cells(intSheetStartRow, colBookingKey1), Cells(1000000, colBookingKey1)).Address(False, False) & _
", " & Range(Cells(intRow, colSummaryKey1), Cells(intRow, colSummaryKey1)).Address(False, False) & " & ""/Onsite""" & _
", Private!" & Range(Cells(intSheetStartRow, colBookingRevenue), Cells(1000000, colBookingRevenue)).Address(False, False) & ") + SUMIF(Public!" & Range(Cells(intSheetStartRow, colBookingKey1), Cells(1000000, colBookingKey1)).Address(False, False) & _
", " & Range(Cells(intRow, colSummaryKey1), Cells(intRow, colSummaryKey1)).Address(False, False) & " & ""/Public""" & _
", Public!" & Range(Cells(intSheetStartRow, colBookingRevenue), Cells(1000000, colBookingRevenue)).Address(False, False) & ") + SUMIF(3Party!" & Range(Cells(intSheetStartRow, colBookingKey1), Cells(1000000, colBookingKey1)).Address(False, False) & _
", " & Range(Cells(intRow, colSummaryKey1), Cells(intRow, colSummaryKey1)).Address(False, False) & " & ""/3Party""" & _
", 3Party!" & Range(Cells(intSheetStartRow, colBookingRevenue), Cells(1000000, colBookingRevenue)).Address(False, False) & ")"
'DeliveredCost
TempArray(Currenti, colSummaryDeliveredCost) = _
"=SUMIF(Private!" & Range(Cells(intSheetStartRow, colBookingKey1), Cells(1000000, colBookingKey1)).Address(False, False) & _
", " & Range(Cells(intRow, colSummaryKey1), Cells(intRow, colSummaryKey1)).Address(False, False) & " & ""/Company""" & _
", Private!" & Range(Cells(intSheetStartRow, colBookingCost), Cells(1000000, colBookingCost)).Address(False, False) & ") + SUMIF(Private!" & Range(Cells(intSheetStartRow, colBookingKey1), Cells(1000000, colBookingKey1)).Address(False, False) & _
", " & Range(Cells(intRow, colSummaryKey1), Cells(intRow, colSummaryKey1)).Address(False, False) & " & ""/RoomHire""" & _
", Private!" & Range(Cells(intSheetStartRow, colBookingCost), Cells(1000000, colBookingCost)).Address(False, False) & ") + SUMIF(Private!" & Range(Cells(intSheetStartRow, colBookingKey1), Cells(1000000, colBookingKey1)).Address(False, False) & _
", " & Range(Cells(intRow, colSummaryKey1), Cells(intRow, colSummaryKey1)).Address(False, False) & " & ""/Onsite""" & _
", Private!" & Range(Cells(intSheetStartRow, colBookingCost), Cells(1000000, colBookingCost)).Address(False, False) & ") + SUMIF(Public!" & Range(Cells(intSheetStartRow, colBookingKey1), Cells(1000000, colBookingKey1)).Address(False, False) & _
", " & Range(Cells(intRow, colSummaryKey1), Cells(intRow, colSummaryKey1)).Address(False, False) & " & ""/Public""" & _
", Public!" & Range(Cells(intSheetStartRow, colBookingCost), Cells(1000000, colBookingCost)).Address(False, False) & ") + SUMIF(3Party!" & Range(Cells(intSheetStartRow, colBookingKey1), Cells(1000000, colBookingKey1)).Address(False, False) & _
", " & Range(Cells(intRow, colSummaryKey1), Cells(intRow, colSummaryKey1)).Address(False, False) & " & ""/3Party""" & _
", 3Party!" & Range(Cells(intSheetStartRow, colBookingCost), Cells(1000000, colBookingCost)).Address(False, False) & ")"
'DeliveredMargin
TempArray(Currenti, colSummaryDeliveredMargin) = _
"=SUMIF(Private!" & Range(Cells(intSheetStartRow, colBookingKey1), Cells(1000000, colBookingKey1)).Address(False, False) & _
", " & Range(Cells(intRow, colSummaryKey1), Cells(intRow, colSummaryKey1)).Address(False, False) & " & ""/Company""" & _
", Private!" & Range(Cells(intSheetStartRow, colBookingMargin), Cells(1000000, colBookingMargin)).Address(False, False) & ") + SUMIF(Private!" & Range(Cells(intSheetStartRow, colBookingKey1), Cells(1000000, colBookingKey1)).Address(False, False) & _
", " & Range(Cells(intRow, colSummaryKey1), Cells(intRow, colSummaryKey1)).Address(False, False) & " & ""/RoomHire""" & _
", Private!" & Range(Cells(intSheetStartRow, colBookingMargin), Cells(1000000, colBookingMargin)).Address(False, False) & ") + SUMIF(Private!" & Range(Cells(intSheetStartRow, colBookingKey1), Cells(1000000, colBookingKey1)).Address(False, False) & _
", " & Range(Cells(intRow, colSummaryKey1), Cells(intRow, colSummaryKey1)).Address(False, False) & " & ""/Onsite""" & _
", Private!" & Range(Cells(intSheetStartRow, colBookingMargin), Cells(1000000, colBookingMargin)).Address(False, False) & ") + SUMIF(Public!" & Range(Cells(intSheetStartRow, colBookingKey1), Cells(1000000, colBookingKey1)).Address(False, False) & _
", " & Range(Cells(intRow, colSummaryKey1), Cells(intRow, colSummaryKey1)).Address(False, False) & " & ""/Public""" & _
", Public!" & Range(Cells(intSheetStartRow, colBookingMargin), Cells(1000000, colBookingMargin)).Address(False, False) & ") + SUMIF(3Party!" & Range(Cells(intSheetStartRow, colBookingKey1), Cells(1000000, colBookingKey1)).Address(False, False) & _
", " & Range(Cells(intRow, colSummaryKey1), Cells(intRow, colSummaryKey1)).Address(False, False) & " & ""/3Party""" & _
", 3Party!" & Range(Cells(intSheetStartRow, colBookingMargin), Cells(1000000, colBookingMargin)).Address(False, False) & ")"
'Delivered Margin %
TempArray(Currenti, colSummaryDeliveredMarginPerc) = _
"=IF(" & Cells(intRow, colSummaryDelivered).Address(False, False) & "<>0," & Cells(intRow, colSummaryDeliveredMargin).Address(False, False) & "/" & Cells(intRow, colSummaryDelivered).Address(False, False) & ",0)"
Bookmarks