macro for nested if formula where result depends on text and number values from different columns

CorrectBalance

New Member
Joined
Apr 20, 2014
Messages
1
Hi everyone,

I ma using excel enterprise 2007.

I run in to problem with my current work. I have tried to write a macro for nested if formula and used several different examples of those from internet including some from this forum, however those where not exactly relating to my problem.

I am complete novice in terms of macros and vba.
I would like to input number in column c but that number has to be based on text input in column f and some number will have to check if value in column h is above 0

Example:

nominaldescriptionoutin
paypal transfer5000
post office190

<tbody>
</tbody>

In column named "Nominal" I have to put numbers as such: 4000 - for paypal transfer provided that column "in" >0 ; and 5100 for post office provided that column "out" >0

I have more than 5000 transactions in there (rows) and description will vary a lot. I would like a template of macro which I could fill in with appropriate text from description and numbers I need in Nominal to run through entire worksheet. I also want that macro to run only when I press run macro. I do not want number in nominal to change on its own if I move value from "in" to "out" or vice versa.

Help please.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Forum statistics

Threads
1,214,889
Messages
6,122,097
Members
449,065
Latest member
albertocarrillom

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