Hi,
I have over 8000 line excel report which lists all items in a quotes. I need to add column for "Extended List Price" only for the lines that are for the same quote
Example: I need for the code to be able to scan my report and average the discount % but only for the same quotes . Currently My code would have added up and averages all the Discount % listed below.
[TABLE="class: outer_border, width: 500, align: left"]
<tbody>[TR]
[TD]Quote Number[/TD]
[TD]Extended Amount[/TD]
[TD]Extended Amount Net of Incentive[/TD]
[TD]Discount %[/TD]
[TD]Discount for Entire Quote[/TD]
[/TR]
[TR]
[TD]00400318[/TD]
[TD]$280000[/TD]
[TD]$140000[/TD]
[TD]50%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]00300418[/TD]
[TD]$400000[/TD]
[TD]$200000[/TD]
[TD]50%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]00300418[/TD]
[TD]$500000[/TD]
[TD]$250000[/TD]
[TD]50%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]00300418[/TD]
[TD]$600000[/TD]
[TD]$60000[/TD]
[TD]90%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]00300418[/TD]
[TD]$25000[/TD]
[TD]$0[/TD]
[TD]100%[/TD]
[TD](50+50+90+50+100)/5 = 68%[/TD]
[/TR]
[TR]
[TD]12345678[/TD]
[TD]$280000[/TD]
[TD]$140000[/TD]
[TD]50%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thank You
I have over 8000 line excel report which lists all items in a quotes. I need to add column for "Extended List Price" only for the lines that are for the same quote
Example: I need for the code to be able to scan my report and average the discount % but only for the same quotes . Currently My code would have added up and averages all the Discount % listed below.
[TABLE="class: outer_border, width: 500, align: left"]
<tbody>[TR]
[TD]Quote Number[/TD]
[TD]Extended Amount[/TD]
[TD]Extended Amount Net of Incentive[/TD]
[TD]Discount %[/TD]
[TD]Discount for Entire Quote[/TD]
[/TR]
[TR]
[TD]00400318[/TD]
[TD]$280000[/TD]
[TD]$140000[/TD]
[TD]50%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]00300418[/TD]
[TD]$400000[/TD]
[TD]$200000[/TD]
[TD]50%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]00300418[/TD]
[TD]$500000[/TD]
[TD]$250000[/TD]
[TD]50%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]00300418[/TD]
[TD]$600000[/TD]
[TD]$60000[/TD]
[TD]90%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]00300418[/TD]
[TD]$25000[/TD]
[TD]$0[/TD]
[TD]100%[/TD]
[TD](50+50+90+50+100)/5 = 68%[/TD]
[/TR]
[TR]
[TD]12345678[/TD]
[TD]$280000[/TD]
[TD]$140000[/TD]
[TD]50%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thank You