Good day,
I have been using a formula below to calculate SP id's and sale amounts. It worked fine but suddenly it does not pick up the next ID number.
Apologies - I do not know how to paste the example properly.
{=INDEX($H$20:$H$29,MATCH(SMALL(IF(COUNTIF($K$19:K19, $H$20:$H$29)=0, COUNTIF($H$20:$H$29, "<"&$H$20:$H$29), ""), 1), COUNTIF($H$20:$H$29, "<"&$H$20:$H$29), 0))} | SP ID formula
=SUMIF($D$5:$D$15,F7,$D$5:$D$15) | Total Sales formula
Any help will be appreciated. Thanks
[TABLE="width: 0"]
<tbody>[TR]
[TD]Month
[/TD]
[TD]
[/TD]
[TD]SP ID
[/TD]
[TD]Sales
[/TD]
[/TR]
[TR]
[TD]Feb
[/TD]
[TD]
[/TD]
[TD]4
[/TD]
[TD] R 2,280.40
[/TD]
[/TR]
[TR]
[TD]Feb
[/TD]
[TD]
[/TD]
[TD]7
[/TD]
[TD] R 1,144.92
[/TD]
[/TR]
[TR]
[TD]Feb
[/TD]
[TD]
[/TD]
[TD]8
[/TD]
[TD] R 1,144.92
[/TD]
[/TR]
[TR]
[TD]Feb
[/TD]
[TD]
[/TD]
[TD]14
[/TD]
[TD] R 924.14
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]
[/TD]
[TD]SP ID
[/TD]
[TD]Sales
[/TD]
[/TR]
[TR]
[TD]Mar
[/TD]
[TD]
[/TD]
[TD]4
[/TD]
[TD] R 1,144.92
[/TD]
[/TR]
[TR]
[TD]Mar
[/TD]
[TD]
[/TD]
[TD]5
[/TD]
[TD] R 924.14
[/TD]
[/TR]
[TR]
[TD]Mar
[/TD]
[TD]
[/TD]
[TD]14
[/TD]
[TD] R 1,144.92
[/TD]
[/TR]
[TR]
[TD]Mar
[/TD]
[TD]
[/TD]
[TD]52
[/TD]
[TD] R 2,140.14
[/TD]
[/TR]
[TR]
[TD]Mar
[/TD]
[TD]
[/TD]
[TD]64
[/TD]
[TD] R 1,144.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/TD]
[TD]
[/TD]
[TD]52
[/TD]
[TD] R2,140.14
[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]
[/TD]
[TD]64
[/TD]
[TD] R1,144.92
[/TD]
[/TR]
</tbody>[/TABLE]
I have been using a formula below to calculate SP id's and sale amounts. It worked fine but suddenly it does not pick up the next ID number.
Apologies - I do not know how to paste the example properly.
{=INDEX($H$20:$H$29,MATCH(SMALL(IF(COUNTIF($K$19:K19, $H$20:$H$29)=0, COUNTIF($H$20:$H$29, "<"&$H$20:$H$29), ""), 1), COUNTIF($H$20:$H$29, "<"&$H$20:$H$29), 0))} | SP ID formula
=SUMIF($D$5:$D$15,F7,$D$5:$D$15) | Total Sales formula
Any help will be appreciated. Thanks
[TABLE="width: 0"]
<tbody>[TR]
[TD]Month
[/TD]
[TD]
[/TD]
[TD]SP ID
[/TD]
[TD]Sales
[/TD]
[/TR]
[TR]
[TD]Feb
[/TD]
[TD]
[/TD]
[TD]4
[/TD]
[TD] R 2,280.40
[/TD]
[/TR]
[TR]
[TD]Feb
[/TD]
[TD]
[/TD]
[TD]7
[/TD]
[TD] R 1,144.92
[/TD]
[/TR]
[TR]
[TD]Feb
[/TD]
[TD]
[/TD]
[TD]8
[/TD]
[TD] R 1,144.92
[/TD]
[/TR]
[TR]
[TD]Feb
[/TD]
[TD]
[/TD]
[TD]14
[/TD]
[TD] R 924.14
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]
[/TD]
[TD]SP ID
[/TD]
[TD]Sales
[/TD]
[/TR]
[TR]
[TD]Mar
[/TD]
[TD]
[/TD]
[TD]4
[/TD]
[TD] R 1,144.92
[/TD]
[/TR]
[TR]
[TD]Mar
[/TD]
[TD]
[/TD]
[TD]5
[/TD]
[TD] R 924.14
[/TD]
[/TR]
[TR]
[TD]Mar
[/TD]
[TD]
[/TD]
[TD]14
[/TD]
[TD] R 1,144.92
[/TD]
[/T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