Need to increment a value in a list

G

Guest

Guest
I am new to macros/excel

I am trying to use vlookup to increment (by 1) a value (using help in excel has left me frustrated beyond belief)in the next column

ie list is

bob 3
mike 4
carol 5
steve 2

= VLOOKUP(C1,myList,2,FALSE) c1 has "carol"

so this returns 5 now I want to increment to 6 and place back into carol's row- this seems like it should be so very easy to accomplish and yet...

Thanks
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
You mean that you want Carol's value to change to 6?

If so, do you want to change that value to 6 in the MyList range? Or where? VLOOKUPs return values, the do not change values.
 
Upvote 0
Exactly - I need to increase carol's number to six.

Vlookup locates correct number now how can I refer to that cell (and change its contents to 6)?
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,732
Members
448,987
Latest member
marion_davis

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