Calculation The GAP

apramono

New Member
Joined
Jun 14, 2013
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Hi All,

Please kindly help for the problem. I need to break down and compare data for scan vs data sales.
1. If the data scan > data sales . The calculation will be using data sales
2. If the data scan < data sales . The calculation will be using data scan

Unfortunately data scan separate amount how much

CodeName500400300200100Total ScanData SalesCalculation
abcMr. X1000565=(1*500)+(4*100)
defMr. Y0221056=(2*400)+(2*300)+(1*200)
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Not sure where =(1*500)+(4*100) this comes about.

You meant compare the Total Scan value vs Data Sales value in respective row? I don't see how this relates to calculation
 
Upvote 0
As well as clarifying Zot's comments, can you please confirm what should happen if Scan = Sales

Perhaps another 5 or 6 rows of sample data and calculation steps might also help clarify.
 
Upvote 0
Not sure where =(1*500)+(4*100) this comes about.

You meant compare the Total Scan value vs Data Sales value in respective row? I don't see how this relates to calculation
Because i will used the lowest number ... total scan 6 and data sales are 5

Store Name10,000,0005,000,0001,000,000500,000100,00050,00020,00010,0005,000Grand TotalData SalesCalculation
TOMS LIGHTING-------15-155= (5*5000)
TOMS LIGHTING 2------19-1010=(1*20.000)+(9*10.000)
CAHAYA AGUNG JAYA ELEKTRIK-------46-4630=(30*10.000) caused data sales are 30
Purnama jaya elektrik-------2-2-0 cause data sales are 0
DUA BERLIAN TK---111---36=(1*500.000)+(1*100.000)+(1*50.000)
UD PIJAR MANDIRI-------11-1111=(11*10.000)
RADO/SURYA ELEKTRIK--1--5281478-765325=(1*1.000.000)+(5*50.000)+(281*20.000)+(38*10.000) (the rest will not calculate because data sales are 325)
 
Upvote 0
Now I get more confused ?

1st row 5*5000 (5 is Data sales but why multiply with 5000?)
2nd row Grand Total = Data sales (So, same as Data Sales < Grand Total, right. I see number multiply with corresponding column value at the top)
3rd row Data Sales < Grand Total (Use 30 * 10000 column since got value in that column, right?)
4th row (As stated)
5th row Grand Total = Data sales (So, same like 2nd row)
6th row Data Sales < Grand Total like 3rd row (Why use formula like Grand Total < Data Sales ? =(1*1.000.000)+(5*50.000)+(281*20.000)+(38*10.000). Where 38 comes from? )
 
Upvote 0
Now I get more confused ?

1st row 5*5000 (5 is Data sales but why multiply with 5000?)
2nd row Grand Total = Data sales (So, same as Data Sales < Grand Total, right. I see number multiply with corresponding column value at the top)
3rd row Data Sales < Grand Total (Use 30 * 10000 column since got value in that column, right?)
4th row (As stated)
5th row Grand Total = Data sales (So, same like 2nd row)
6th row Data Sales < Grand Total like 3rd row (Why use formula like Grand Total < Data Sales ? =(1*1.000.000)+(5*50.000)+(281*20.000)+(38*10.000). Where 38 comes from? )
1st row : sorry it was mistake it should 5*10.000
2nd row : yes it was multiply with corresponding column value at the top
3rd row : yes correct
4rd row : as stated
5th row : same as 2nd row
6th row : 38 comes from total Sales are 325. 325-(1+5+281) and the rest will not count.
 
Upvote 0
1st row : sorry it was mistake it should 5*10.000
2nd row : yes it was multiply with corresponding column value at the top
3rd row : yes correct
4rd row : as stated
5th row : same as 2nd row
6th row : 38 comes from total Sales are 325. 325-(1+5+281) and the rest will not count.
So, the 478 is not calculated because it is more than 325 (Data Sales). The condition is also applied if the number is equal to Data sales like in Row 1 in initial example =(1*500)+(4*100)

:unsure:
 
Upvote 0
So, the 478 is not calculated because it is more than 325 (Data Sales). The condition is also applied if the number is equal to Data sales like in Row 1 in initial example =(1*500)+(4*100)

:unsure:
Yes form data 478 only 38 will count so (38*10.000) not (478*10.000)
 
Upvote 0
Yes form data 478 only 38 will count so (38*10.000) not (478*10.000)
Another condition is:
Say the condition is Data Sales < Grand Total. What if there are more than one column with numbers more than Data Sales?

This is quite complicated... at least for me ?
 
Upvote 0
Another condition is:
Say the condition is Data Sales < Grand Total. What if there are more than one column with numbers more than Data Sales?

This is quite complicated... at least for me ?
If Data Sales < Data Scan : The Calculation is from data Data Sales
If Data Sales > Data Scan : The Calculation is form Data Scan.

Unfortunately I need to separate the GAP between criteria in each column in data scan as per table previously. Max number entitle that will be count are from the lowest between Data Sales or Data Scan.
 
Upvote 0

Forum statistics

Threads
1,214,990
Messages
6,122,625
Members
449,093
Latest member
catterz66

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