Slot sales value based on activity number

jayant123

New Member
Joined
Jul 12, 2011
Messages
11
Office Version
  1. 2019
Platform
  1. Windows
Hello ,

i have three columns, first column has activity numbers A3: A43 , second column b3 : b43 is the
Sales Range From and third column c3 :c43 is
Sales Range To for respective activities.

i have sales achieved for a particular month against each activity in column E3 : E43 , need to slot the sales in the need to slot column G3 : G43 within the range of specific activity.
looking for an excel formula which will simplify the slotting.
attaching the excel file for better understanding.

Slotting challenge.xlsx
ABCDEFG
1solution expected
2
3Activity no.Sales Range FromSales Range ToSalesNeed to slot
4 RBT400658 363,503381,6783,3883,388
5 RBT400658 381,715399,8173,388
6 RBT400658 399,8531,399,8533,388
7 RBT400745 379,850398,843-
8 RBT400745 398,880417,797-
9 RBT400745 417,8351,417,835-
10 RBT400683 1,260,0001,319,8801,349,940
11 RBT400683 1,320,0001,379,8801,349,9401,349,940
12 RBT400683 1,380,0001,439,8801,349,940
13 RBT400683 1,440,0002,440,0001,349,940
14 RBT400738 1,330,7691,394,0121,489,130
15 RBT400738 1,394,1391,457,3821,489,130
16 RBT400738 1,457,5091,520,7521,489,1301,489,130
17 RBT400738 1,520,8792,520,8791,489,130
18 RBT400722 312,800326,373319,586319,586
19 RBT400722 326,400339,973319,586
20 RBT400722 340,0001,340,000319,586
21 RBT400744 215,050224,381178,000178,000
22 RBT400744 224,400233,731178,000
23 RBT400744 233,7501,233,750178,000
24 RBT400646 547,220572,0441,857,920
25 RBT400646 572,094596,9181,857,920
26 RBT400646 596,968646,6651,857,920
27 RBT400646 646,7151,646,7151,857,9201,857,920
28 RBT400696 453,6011,453,601145,555145,555
29 RBT400699 718,356750,94311,28511,285
30 RBT400699 751,009783,59611,285
31 RBT400699 783,6611,783,66111,285
32 RBT400725 127,612133,4011,7501,750
33 RBT400725 133,413139,2021,750
34 RBT400725 139,213145,0021,750
35 RBT400725 145,0141,145,0141,750
36 RBT400729 1,600,0001,631,840- 72,572- 72,572
37 RBT400729 1,632,0001,663,840- 72,572
38 RBT400729 1,664,0001,695,840- 72,572
39 RBT400729 1,696,0002,696,000- 72,572
40 RBT400730 1,504,7741,549,917-
41 RBT400730 1,550,0681,580,013-
42 RBT400730 1,580,1631,625,156-
43 RBT400730 1,625,3062,625,306-
Sheet1

Thank you
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
MrExcelPlayground20.xlsx
ABCDEFGHI
1solution expected
2
3Activity no.Sales Range FromSales Range ToSalesNeed to slotPlain ExcelExcel 365
4 RBT400658 363503381678.15$3,387.803387.8$3,387.80$3,387.80
5 RBT400658 381714.5003399816.9497$3,387.80 
6 RBT400658 399853.31399853.3$3,387.80 
7 RBT400745 379850398842.5$0.00$0.00$0.00
8 RBT400745 398880.485417797.015$0.00 
9 RBT400745 4178351417835$0.00 
10 RBT400683 12600001319880$1,349,940.00$1,349,940.00$1,349,940.00
11 RBT400683 13200001379880$1,349,940.001349940 
12 RBT400683 13800001439880$1,349,940.00 
13 RBT400683 14400002440000$1,349,940.00 
14 RBT400738 1330768.951394012.16$1,489,130.46$1,489,130.46$1,489,130.46
15 RBT400738 1394138.91457382.11$1,489,130.46 
16 RBT400738 1457508.851520752.06$1,489,130.461489130.5 
17 RBT400738 1520878.82520878.8$1,489,130.46 
18 RBT400722 312800326372.8$319,586.40319586.4$319,586.40$319,586.40
19 RBT400722 326400339972.8$319,586.40 
20 RBT400722 3400001340000$319,586.40 
21 RBT400744 215050224381.3$178,000.00178000$178,000.00$178,000.00
22 RBT400744 224400233731.3$178,000.00 
23 RBT400744 2337501233750$178,000.00 
24 RBT400646 547220.3572044.2027$1,857,920.00$1,857,920.00$1,857,920.00
25 RBT400646 572093.95596917.8527$1,857,920.00 
26 RBT400646 596967.6646665.1527$1,857,920.00 
27 RBT400646 646714.91646714.9$1,857,920.001857920 
28 RBT400696 453601.1961453601.196$145,555.00145555$145,555.00$145,555.00
29 RBT400699 718356.1750943.3449$11,284.8011285$11,284.80$11,284.80
30 RBT400699 751008.65783595.8949$11,284.80 
31 RBT400699 783661.21783661.2$11,284.80 
32 RBT400725 127612.111133401.0604$1,750.471750$1,750.47$1,750.47
33 RBT400725 133412.6615139201.6109$1,750.47 
34 RBT400725 139213.212145002.1614$1,750.47 
35 RBT400725 145013.76251145013.763$1,750.47 
36 RBT400729 16000001631840-$72,572.02-72572-$72,572.02-$72,572.02
37 RBT400729 16320001663840-$72,572.02 
38 RBT400729 16640001695840-$72,572.02 
39 RBT400729 16960002696000-$72,572.02 
40 RBT400730 15047741549917.22$0.00$0.00$0.00
41 RBT400730 1550067.6971580012.7$0.00 
42 RBT400730 1580163.1771625155.92$0.00 
43 RBT400730 1625306.3972625306.397$0.00 
Sheet20
Cell Formulas
RangeFormula
I4:I43I4=LET(a,E4:E43,b,DROP(a,-1),c,VSTACK(0,b),IF(a<>c,a,""))
H4:H43H4=IF(E4=E3,"",E4)
Dynamic array formulas.
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Thanks for the attempt , i am using excel 2109 version as such had to refer =IF(E4=E3,"",E4) this formula, which does not work .
if you look at activity RBT400683 has a sales amount of 1,349,940 which needs to be slotted between Range 1,320,000 and 1,379,880 as the sales falls within this range.

while the formula currently is slotting this amount between 1,260,00 and 1,319,880.
 
Upvote 0
what i am trying to do is the sales value reflecting in column E needs to be slotted against respective activity only once based on the range in which it is falling. S explained above
For Activity RBT400683 has a sales amount of 1,349,940 which needs to be slotted between Range 1,320,000 and 1,379,880 as the sales falls within this range.

Let me know if this is clear
 
Upvote 0
MrExcelPlayground20.xlsx
ABCDEFGH
1solution expected
2
3Activity no.Sales Range FromSales Range ToSalesNeed to slotPlain Excel
4 RBT400658 $363,503.00$381,678.15$3,387.803387.8$3,387.80
5 RBT400658 $381,714.50$399,816.95$3,387.80 
6 RBT400658 $399,853.30$1,399,853.30$3,387.80 
7 RBT400745 $379,850.00$398,842.50$0.00$0.00
8 RBT400745 $398,880.49$417,797.02$0.00 
9 RBT400745 $417,835.00$1,417,835.00$0.00 
10 RBT400683 $1,260,000.00$1,319,880.00$1,349,940.00 
11 RBT400683 $1,320,000.00$1,379,880.00$1,349,940.001349940$1,349,940.00
12 RBT400683 $1,380,000.00$1,439,880.00$1,349,940.00 
13 RBT400683 $1,440,000.00$2,440,000.00$1,349,940.00 
14 RBT400738 $1,330,768.95$1,394,012.16$1,489,130.46 
15 RBT400738 $1,394,138.90$1,457,382.11$1,489,130.46 
16 RBT400738 $1,457,508.85$1,520,752.06$1,489,130.461489130.5$1,489,130.46
17 RBT400738 $1,520,878.80$2,520,878.80$1,489,130.46 
18 RBT400722 $312,800.00$326,372.80$319,586.40319586.4$319,586.40
19 RBT400722 $326,400.00$339,972.80$319,586.40 
20 RBT400722 $340,000.00$1,340,000.00$319,586.40 
21 RBT400744 $215,050.00$224,381.30$178,000.00178000$178,000.00
22 RBT400744 $224,400.00$233,731.30$178,000.00 
23 RBT400744 $233,750.00$1,233,750.00$178,000.00 
24 RBT400646 $547,220.30$572,044.20$1,857,920.00 
25 RBT400646 $572,093.95$596,917.85$1,857,920.00 
26 RBT400646 $596,967.60$646,665.15$1,857,920.00 
27 RBT400646 $646,714.90$1,646,714.90$1,857,920.001857920$1,857,920.00
28 RBT400696 $453,601.20$1,453,601.20$145,555.00145555$145,555.00
29 RBT400699 $718,356.10$750,943.34$11,284.8011285$11,284.80
30 RBT400699 $751,008.65$783,595.89$11,284.80 
31 RBT400699 $783,661.20$1,783,661.20$11,284.80 
32 RBT400725 $127,612.11$133,401.06$1,750.471750$1,750.47
33 RBT400725 $133,412.66$139,201.61$1,750.47 
34 RBT400725 $139,213.21$145,002.16$1,750.47 
35 RBT400725 $145,013.76$1,145,013.76$1,750.47 
36 RBT400729 $1,600,000.00$1,631,840.00-$72,572.02-72572-$72,572.02
37 RBT400729 $1,632,000.00$1,663,840.00-$72,572.02 
38 RBT400729 $1,664,000.00$1,695,840.00-$72,572.02 
39 RBT400729 $1,696,000.00$2,696,000.00-$72,572.02 
40 RBT400730 $1,504,774.00$1,549,917.22$0.00$0.00
41 RBT400730 $1,550,067.70$1,580,012.70$0.00 
42 RBT400730 $1,580,163.18$1,625,155.92$0.00 
43 RBT400730 $1,625,306.40$2,625,306.40$0.00 
Sheet20
Cell Formulas
RangeFormula
H4:H43H4=IF(AND(E4>=B4,E4<=C4),E4,IF(AND(E4<>E3,E4<B4),E4,IF(AND(E4<>E5,E4>C4),E4,"")))
 
Upvote 0
Solution

Forum statistics

Threads
1,215,949
Messages
6,127,877
Members
449,410
Latest member
adunn_23

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top