Update Cell value using the user defined identifiers

ilasubbu

New Member
Joined
Nov 4, 2008
Messages
15
All, I need your help in writing a macro,

My column definitions are,
Column - B - > Identifier
Column - C - > Available
Column - J - > Spent
Column - K - > Reference


I have the following cell arrangement
B5=A
C5=10000
B6=B
C6=8000
so on...

This is constant.

If I enter the following values at,
J8=2000
K8=A


Then my macro need to check column - B to identify where we have the value "A" and it has to update the cell C5 as C5 - J8.
Could someone please help to write a excel macro on this.

Note: In B6, B7, B8 cells, I have different alphabets with the corresponding amount entered on it.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Please reconsider the approach - there are many ways in which this can go wrong - most importantly you have now way to undo the effect of wrong 'Spent' entries - the available column will be irrevocably altered.
 
Upvote 0
ilasubbu

Welcome to the MrExcel board!

First, does it really need to be a macro? Could you have the starting amount somewhere (I have put it in col A) and use a formula as shown. The C5 formula is copied down to C8.

Excel Workbook
ABCDEFGHIJK
1StartIdentifierAvailableSpentReference
2
3
4
510000A7900
68000B1
75000C5000
84000D39502000A
94000B
10100A
1150D
123999B
13
Available
 
Upvote 0

Forum statistics

Threads
1,221,566
Messages
6,160,525
Members
451,655
Latest member
rugubara

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