Good Day
I have clients with unique number and client are purchasing with credit balance so we have registry including all purchasing transactions over all the whole month and it is registered on rows
What I am seeking for is searching on the column related to transaction balance based on the unique number as I have maximum number per each client and purchasing transaction must not exceed this maximum per client not per transaction
[TABLE="width: 576"]
<tbody>[TR]
[TD]Area
[/TD]
[TD]Area No
[/TD]
[TD]Branch
[/TD]
[TD]Launch Date
[/TD]
[TD]Grade
[/TD]
[TD]Balance
[/TD]
[TD]Balance Should Be
[/TD]
[/TR]
[TR]
[TD]South
[/TD]
[TD]52
[/TD]
[TD]Shams1
[/TD]
[TD]01-11-04
[/TD]
[TD]A
[/TD]
[TD]3,000
[/TD]
[TD]-
[/TD]
[/TR]
[TR]
[TD]South
[/TD]
[TD]52
[/TD]
[TD]Shams3
[/TD]
[TD]01-10-04
[/TD]
[TD]A
[/TD]
[TD]12,000
[/TD]
[TD]10,000
[/TD]
[/TR]
[TR]
[TD]South
[/TD]
[TD]52
[/TD]
[TD]Shams2
[/TD]
[TD]01-01-03
[/TD]
[TD]B
[/TD]
[TD]60,000
[/TD]
[TD]60,000
[/TD]
[/TR]
[TR]
[TD]North
[/TD]
[TD]42
[/TD]
[TD]Badr1
[/TD]
[TD]01-01-05
[/TD]
[TD]A
[/TD]
[TD]6,000
[/TD]
[TD]6,000
[/TD]
[/TR]
[TR]
[TD]North
[/TD]
[TD]42
[/TD]
[TD]Badr2
[/TD]
[TD]01-01-10
[/TD]
[TD]A
[/TD]
[TD]8,000
[/TD]
[TD]4,000
[/TD]
[/TR]
[TR]
[TD]West
[/TD]
[TD]62
[/TD]
[TD]Fagr1
[/TD]
[TD]01-01-03
[/TD]
[TD]A
[/TD]
[TD]5,000
[/TD]
[TD]5,000
[/TD]
[/TR]
[TR]
[TD]West
[/TD]
[TD]62
[/TD]
[TD]Fagr2
[/TD]
[TD]01-01-07
[/TD]
[TD]B
[/TD]
[TD]45,000
[/TD]
[TD]20,000
[/TD]
[/TR]
[TR]
[TD]West
[/TD]
[TD]62
[/TD]
[TD]Fagr2
[/TD]
[TD]01-01-06
[/TD]
[TD]B
[/TD]
[TD]55,000
[/TD]
[TD]55,000
[/TD]
[/TR]
[TR]
[TD]East
[/TD]
[TD]32
[/TD]
[TD]Badr1
[/TD]
[TD]01-01-02
[/TD]
[TD]B
[/TD]
[TD]50,000
[/TD]
[TD]50,000
[/TD]
[/TR]
[TR]
[TD]East
[/TD]
[TD]32
[/TD]
[TD]Fagr1
[/TD]
[TD]01-01-02
[/TD]
[TD]B
[/TD]
[TD]50,000
[/TD]
[TD]30,000
[/TD]
[/TR]
[TR]
[TD]East
[/TD]
[TD]32
[/TD]
[TD]Shams1
[/TD]
[TD]01-01-11
[/TD]
[TD]A
[/TD]
[TD]2,000
[/TD]
[TD]-
[/TD]
[/TR]
</tbody>[/TABLE]
Unique number will be based on area number
Priority classification will be based on
Example 1
Area ( South ) so excel formula will find area number 52 is repeated 3 times and area classified that has A & B so maximum area balance available up to 80,000 so first launch date is 01-01-03 so full balance then remaining will be 01-10-04 by 10,000 only not 12,000 as the maximum is 10,000 then remaining 01-11-04 will be zero as area already has another A
Example 2
Example 3
I hope to find support to create this formula
Regards
I have clients with unique number and client are purchasing with credit balance so we have registry including all purchasing transactions over all the whole month and it is registered on rows
What I am seeking for is searching on the column related to transaction balance based on the unique number as I have maximum number per each client and purchasing transaction must not exceed this maximum per client not per transaction
[TABLE="width: 576"]
<tbody>[TR]
[TD]Area
[/TD]
[TD]Area No
[/TD]
[TD]Branch
[/TD]
[TD]Launch Date
[/TD]
[TD]Grade
[/TD]
[TD]Balance
[/TD]
[TD]Balance Should Be
[/TD]
[/TR]
[TR]
[TD]South
[/TD]
[TD]52
[/TD]
[TD]Shams1
[/TD]
[TD]01-11-04
[/TD]
[TD]A
[/TD]
[TD]3,000
[/TD]
[TD]-
[/TD]
[/TR]
[TR]
[TD]South
[/TD]
[TD]52
[/TD]
[TD]Shams3
[/TD]
[TD]01-10-04
[/TD]
[TD]A
[/TD]
[TD]12,000
[/TD]
[TD]10,000
[/TD]
[/TR]
[TR]
[TD]South
[/TD]
[TD]52
[/TD]
[TD]Shams2
[/TD]
[TD]01-01-03
[/TD]
[TD]B
[/TD]
[TD]60,000
[/TD]
[TD]60,000
[/TD]
[/TR]
[TR]
[TD]North
[/TD]
[TD]42
[/TD]
[TD]Badr1
[/TD]
[TD]01-01-05
[/TD]
[TD]A
[/TD]
[TD]6,000
[/TD]
[TD]6,000
[/TD]
[/TR]
[TR]
[TD]North
[/TD]
[TD]42
[/TD]
[TD]Badr2
[/TD]
[TD]01-01-10
[/TD]
[TD]A
[/TD]
[TD]8,000
[/TD]
[TD]4,000
[/TD]
[/TR]
[TR]
[TD]West
[/TD]
[TD]62
[/TD]
[TD]Fagr1
[/TD]
[TD]01-01-03
[/TD]
[TD]A
[/TD]
[TD]5,000
[/TD]
[TD]5,000
[/TD]
[/TR]
[TR]
[TD]West
[/TD]
[TD]62
[/TD]
[TD]Fagr2
[/TD]
[TD]01-01-07
[/TD]
[TD]B
[/TD]
[TD]45,000
[/TD]
[TD]20,000
[/TD]
[/TR]
[TR]
[TD]West
[/TD]
[TD]62
[/TD]
[TD]Fagr2
[/TD]
[TD]01-01-06
[/TD]
[TD]B
[/TD]
[TD]55,000
[/TD]
[TD]55,000
[/TD]
[/TR]
[TR]
[TD]East
[/TD]
[TD]32
[/TD]
[TD]Badr1
[/TD]
[TD]01-01-02
[/TD]
[TD]B
[/TD]
[TD]50,000
[/TD]
[TD]50,000
[/TD]
[/TR]
[TR]
[TD]East
[/TD]
[TD]32
[/TD]
[TD]Fagr1
[/TD]
[TD]01-01-02
[/TD]
[TD]B
[/TD]
[TD]50,000
[/TD]
[TD]30,000
[/TD]
[/TR]
[TR]
[TD]East
[/TD]
[TD]32
[/TD]
[TD]Shams1
[/TD]
[TD]01-01-11
[/TD]
[TD]A
[/TD]
[TD]2,000
[/TD]
[TD]-
[/TD]
[/TR]
</tbody>[/TABLE]
Unique number will be based on area number
Priority classification will be based on
- Oldest dates for launch dates then new dates
- Maximum per same area with same grade A is 10,000 and same area with same grade B 80,000
- If area has the 2 grades A & B so will be 80000 but if area has more than one record under A so A records maximum is 10,000
- If area has same launching date so highest balance will be first priority with the respect of other above conditions
Example 1
Area ( South ) so excel formula will find area number 52 is repeated 3 times and area classified that has A & B so maximum area balance available up to 80,000 so first launch date is 01-01-03 so full balance then remaining will be 01-10-04 by 10,000 only not 12,000 as the maximum is 10,000 then remaining 01-11-04 will be zero as area already has another A
Example 2
- Area ( North ) so excel formula will find area number 42 is repeated 2 times and area classified that has A so maximum area balance available up to 10,000 so first launch date is 01-01-05 so full balance 6,000 then remaining will be 01-01-10 by 4,000 only not 8,000 as the maximum is 10,000
Example 3
- Area ( East ) so excel formula will find area number 32 is repeated 3 times and area classified that has A & B so maximum area balance available up to 80,000 so first launch date is 01-01-02 is repeated so full high balance 50,000 then remaining will be 01-01-02 by 30,000 only not 50,000 as the maximum is 80,000 then the remaining for date 01-01-11 will be zero as we already reached the maximum
I hope to find support to create this formula
Regards