Need Help for if this manual task can be automated

suresh7860

New Member
Joined
Jul 18, 2015
Messages
48
Hi Experts

Good Evening!

I am doing a task of updating the data manually for each criteria in Column V (Exh Pos / REVAL+CIS+FX / REVAL-SPOT) by filtering Exh Pos then if the sum of the amount in column H (AUD/CNY/ INR/USD/EUR/GBP......... Etc will be 25-30 different currencies) is positive then it should update column N with P35800 & Column P with IP35800 or if negative then it should updated with A35800 & Column P with IA35800to but if it zero then no change.

For example below if i filter column v with Exh Pos and filter column AUD its coming sum is +25 then i should go and update all filtered spceial call until last row with in column N with P35800 & Column P with IP35800 and filter again with next currency i.e., CNY which is zero hence i will not make any changes...

I am doing this task for thousands of lines and for 25-30 currencies and for 3 or 5 criteria's and for different regions hence its taking too much of time to do would be helpful any one can help me with:


Column D
Column G
Column H

<colgroup><col></colgroup><tbody>
</tbody>
Column N
Column P
Column V
6001
AUD
(100.00)

<colgroup><col></colgroup><tbody>
</tbody>
P35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IA35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
Exh Pos

<colgroup><col width="64"></colgroup><tbody>
</tbody>
6002
CNY
1.00

<colgroup><col></colgroup><tbody>
</tbody>
A35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IP35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
Exh Pos

<colgroup><col width="64"></colgroup><tbody>
</tbody>
6003
INR
150.00

<colgroup><col></colgroup><tbody>
</tbody>
A35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IP35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
Exh Pos

<colgroup><col width="64"></colgroup><tbody>
</tbody>
6004
USD
22.00

<colgroup><col></colgroup><tbody>
</tbody>
A35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IP35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
Exh Pos

<colgroup><col width="64"></colgroup><tbody>
</tbody>
6005
EUR

60.00

<tbody>
</tbody>

<colgroup><col></colgroup><tbody>
</tbody>
A35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IP35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
Exh Pos

<colgroup><col width="64"></colgroup><tbody>
</tbody>
6006
GBP
78.00

<colgroup><col></colgroup><tbody>
</tbody>
A35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IP35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
Exh Pos

<colgroup><col width="64"></colgroup><tbody>
</tbody>
6001
AUD
125.00

<colgroup><col></colgroup><tbody>
</tbody>
P35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IA35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
Exh Pos

<colgroup><col width="64"></colgroup><tbody>
</tbody>
6002
CNY
(1.00)

<colgroup><col></colgroup><tbody>
</tbody>
A35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IP35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
Exh Pos

<colgroup><col width="64"></colgroup><tbody>
</tbody>
6003
INR
(255.00)

<colgroup><col></colgroup><tbody>
</tbody>
A35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IP35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
Exh Pos

<colgroup><col width="64"></colgroup><tbody>
</tbody>
6004
USD

(88.00)

<colgroup><col></colgroup><tbody>
</tbody>

<colgroup><col></colgroup><tbody>
</tbody>

<colgroup><col></colgroup><tbody>
</tbody>
A35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IP35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
Exh Pos

<colgroup><col width="64"></colgroup><tbody>
</tbody>
6005
EUR
(55.00)

<colgroup><col></colgroup><tbody>
</tbody>
A35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IP35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
Exh Pos

<colgroup><col width="64"></colgroup><tbody>
</tbody>
6006
GBP
(152.00)

<colgroup><col></colgroup><tbody>
</tbody>
A35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IP35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
Exh Pos

<colgroup><col width="64"></colgroup><tbody>
</tbody>
6001
AUD
(100.00)

<colgroup><col></colgroup><tbody>
</tbody>
P35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IA35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
REVAL+CIS+FX

<colgroup><col width="64"></colgroup><tbody>
</tbody>
6002
CNY
1.00

<colgroup><col></colgroup><tbody>
</tbody>
A35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IP35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
REVAL+CIS+FX

<colgroup><col width="64"></colgroup><tbody>
</tbody>
6003
INR
150.00

<colgroup><col></colgroup><tbody>
</tbody>
A35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IP35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
REVAL+CIS+FX

<colgroup><col width="64"></colgroup><tbody>
</tbody>
6004
USD
22.00

<colgroup><col></colgroup><tbody>
</tbody>
A35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IP35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
REVAL+CIS+FX

<colgroup><col width="64"></colgroup><tbody>
</tbody>
6005
EUR
60.00

<colgroup><col></colgroup><tbody>
</tbody>
A35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IP35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
REVAL+CIS+FX

<colgroup><col width="64"></colgroup><tbody>
</tbody>
6006
GBP
78.00

<colgroup><col></colgroup><tbody>
</tbody>
A35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IP35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
REVAL+CIS+FX

<colgroup><col width="64"></colgroup><tbody>
</tbody>
6001
AUD
125.00

<colgroup><col></colgroup><tbody>
</tbody>
P35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IA35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
REVAL+CIS+FX
6002
CNY
(1.00)

<colgroup><col></colgroup><tbody>
</tbody>
A35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IP35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
REVAL+CIS+FX
6003
INR
(255.00)

<colgroup><col></colgroup><tbody>
</tbody>
A35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IP35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
REVAL+CIS+FX
6004
USD
(88.00)

<colgroup><col></colgroup><tbody>
</tbody>
A35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IP35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
REVAL+CIS+FX
6005
EUR
(55.00)

<colgroup><col></colgroup><tbody>
</tbody>
A35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IP35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
REVAL+CIS+FX
6006
GBP
(152.00)

<colgroup><col></colgroup><tbody>
</tbody>
A35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IP35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
REVAL+CIS+FX
6001
AUD
(100.00)

<colgroup><col></colgroup><tbody>
</tbody>
P35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IA35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
REVAL - SPOT

<colgroup><col width="64"></colgroup><tbody>
</tbody>
6002
CNY
1.00

<colgroup><col></colgroup><tbody>
</tbody>
A35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IP35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
REVAL - SPOT

<colgroup><col width="64"></colgroup><tbody>
</tbody>
6003
INR
150.00

<colgroup><col></colgroup><tbody>
</tbody>
A35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IP35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
REVAL - SPOT

<colgroup><col width="64"></colgroup><tbody>
</tbody>
6004
USD
22.00

<colgroup><col></colgroup><tbody>
</tbody>
A35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IP35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
REVAL - SPOT

<colgroup><col width="64"></colgroup><tbody>
</tbody>
6005
EUR
60.00

<colgroup><col></colgroup><tbody>
</tbody>
A35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IP35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
REVAL - SPOT

<colgroup><col width="64"></colgroup><tbody>
</tbody>
6006
GBP
78.00

<colgroup><col></colgroup><tbody>
</tbody>
A35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IP35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
REVAL - SPOT

<colgroup><col width="64"></colgroup><tbody>
</tbody>
6001
AUD
125.00

<colgroup><col></colgroup><tbody>
</tbody>
P35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IA35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
REVAL - SPOT

<colgroup><col width="64"></colgroup><tbody>
</tbody>
6002
CNY
(1.00)

<colgroup><col></colgroup><tbody>
</tbody>
A35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IP35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
REVAL - SPOT

<colgroup><col width="64"></colgroup><tbody>
</tbody>
6003
INR
(255.00)

<colgroup><col></colgroup><tbody>
</tbody>
A35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IP35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
REVAL - SPOT

<colgroup><col width="64"></colgroup><tbody>
</tbody>
6004
USD
(88.00)

<colgroup><col></colgroup><tbody>
</tbody>
A35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IP35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
REVAL - SPOT

<colgroup><col width="64"></colgroup><tbody>
</tbody>
6005
EUR
(55.00)

<colgroup><col></colgroup><tbody>
</tbody>
A35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IP35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
REVAL - SPOT

<colgroup><col width="64"></colgroup><tbody>
</tbody>
6006
GBP
(152.00)

<colgroup><col></colgroup><tbody>
</tbody>
A35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
IP35800

<colgroup><col width="64"></colgroup><tbody>
</tbody>
REVAL - SPOT

<colgroup><col width="64"></colgroup><tbody>
</tbody>

<tbody>
</tbody>


REVAL+CIS+FX

<colgroup><col width="64"></colgroup><tbody>
</tbody>

Thanks for your help!

Regards
Suresh
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Hi,

I can make it look like your data which is not quite like your description.

Excel 2013
DEFGHIJKLMNOPQRSTUV
1Column DColumn GColumn HColumn NColumn PColumn V
26001AUD-100P35800IA35800Exh Pos
36002CNY1A35800IP35800Exh Pos
46003INR150A35800IP35800Exh Pos
56004USD22A35800IP35800Exh Pos
66005EUR60P35800IA35800Exh Pos
76006GBP78A35800IP35800Exh Pos
86001AUD125P35800IA35800Exh Pos
96002CNY-1A35800IP35800Exh Pos
106003INR-255A35800IP35800Exh Pos
116004USD-88A35800IP35800Exh Pos
126005EUR-55P35800IA35800Exh Pos
136006GBP-152A35800IP35800Exh Pos
146001AUD-100P35800IA35800REVAL+CIS+FX
156002CNY1A35800IP35800REVAL+CIS+FX
166003INR150A35800IP35800REVAL+CIS+FX
176004USD22A35800IP35800REVAL+CIS+FX
186005EUR60P35800IA35800REVAL+CIS+FX
196006GBP78A35800IP35800REVAL+CIS+FX
206001AUD125P35800IA35800REVAL+CIS+FX
216002CNY-1A35800IP35800REVAL+CIS+FX
226003INR-255A35800IP35800REVAL+CIS+FX
236004USD-88A35800IP35800REVAL+CIS+FX
246005EUR-55P35800IA35800REVAL+CIS+FX
256006GBP-152A35800IP35800REVAL+CIS+FX
266001AUD-100P35800IA35800REVAL - SPOT
276002CNY1A35800IP35800REVAL - SPOT
286003INR150A35800IP35800REVAL - SPOT
296004USD22A35800IP35800REVAL - SPOT
306005EUR60P35800IA35800REVAL - SPOT
316006GBP78A35800IP35800REVAL - SPOT
326001AUD125P35800IA35800REVAL - SPOT
336002CNY-1A35800IP35800REVAL - SPOT
346003INR-255A35800IP35800REVAL - SPOT
356004USD-88A35800IP35800REVAL - SPOT
366005EUR-55P35800IA35800REVAL - SPOT
376006GBP-152A35800IP35800REVAL - SPOT
Sheet1
Cell Formulas
RangeFormula
N2=SUMIFS($H$2:$H$37,$V$2:$V$37,$V2,$G$2:$G$37,$G2)
P2=SUMIFS($H$2:$H$37,$V$2:$V$37,$V2,$G$2:$G$37,$G2)

The above formulas need to be pasted down.
Note: they end at row 37. Please change that to be whatever your final data row is.

I have created two Custom Formats for Columns N and P. The Custom Format for Column N is:
"P35800";"A35800";"A35800"
For column P it is:
"IA35800";"IP35800";"IP35800"

You need to right-click on a column, select Format Cells then choose Custom.
In the Edit Box labelled Type paste in one of the above strings. OK then add the next Custom Format.

The SUMIFS() formulas calculate the sum then the formats convert the positive and negative answers into the required strings.

Regards,
 
Last edited:
Upvote 0
Thanks a lot @RickXl :)

It working good for negative sum perfectly but when it is zero then it is treating it as a positive and converting it as P/IP in respective columns. Is there a way to let zero balance data as it is in column N & O accordingly.

I changed the second formula as it should be shown in this way... If Positive, Column (N) P35800 then COlumn (O) IP35800 and if negative then Column (N) A35800 then column (O) IA35800 but when it is zero no need to change the data

Regards
Suresh7860
 
Upvote 0
Sorry its working correctly I didn't catch the difference between the two custom formats which I have understood and changed it as per your format now its working fine for zero too and keeping as it is when it is zero "P35800";"A35800";"A35800" (N) & "IP35800";"IA35800";"IP35800" (O). Thanks a lot and have a great day !!
 
Upvote 0

Forum statistics

Threads
1,215,351
Messages
6,124,445
Members
449,160
Latest member
nikijon

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