LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Junior Member
 
Posts: 1
Default Auto add if condition is met

Hi

I hope you can help

I want to add a certain value to all cells when a certain condition is met.

I'll try to explain:

I have the following table. What should happen is by pressing a button it would automatically increase the value specified (in this case 50) to all values in the column "Frete 20" that meet the condition of the "Pais" being, in this case, "Angola".

The same should happen for each column (Frete; BAF; CAF;...)


País Frete 20 BAF 20 CAF 20 PSS 20
Angola 20 30 40 50


So when clicking the button it would add the corresponding value to each column

POL País Validade Frete 20 BAF 20 CAF 20 PSS 20
Cape Town Africa do Sul
Durban Africa do Sul
East London Africa do Sul
Johannesburg Africa do Sul
Port Elizabeth Africa do Sul
Pretoria Africa do Sul
Cabinda Angola
Lobito Angola
Luanda Angola
Namibe Angola
St. John's Antigua
Damman Arabia Saudita
Jeddah Arabia Saudita
Riyadh Arabia Saudita
Alger Argelia
Algiers Argelia
Buenos Aires Argentina
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I auto hide a row if a condition isnt met? Brian Excel Discussion (Misc queries) 1 April 3rd 09 09:32 PM
Check & Convert cell Value if condition auto SteveT Excel Discussion (Misc queries) 3 June 25th 08 11:10 PM
auto filter with condition RKS Excel Discussion (Misc queries) 1 October 25th 07 08:11 AM
Assign auto numbers based on a condition Lisa Excel Worksheet Functions 8 October 19th 06 02:46 PM
Auto Run Excel macro subject to condition Warrior1800 Excel Programming 1 July 23rd 05 12:10 PM


All times are GMT +1. The time now is 04:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"