How can I increment the value of a row number (A24) based on the value in a cell?

kwame

New Member
Joined
Mar 26, 2015
Messages
3
Hello community! :biggrin::biggrin:

I have a sheet of test data called DATA. It has a lot of info, but to simplify my question it might contain many rows of something like this:
ABC
1JoeSmithID number1
2BobJonesID number 2

<tbody>
</tbody>


In another sheet called SCRIPT I have something like this in a cell.

="Please enter the following:
First Name: "&Data.A1

This produces this result:

Please enter the following:
First Name: Joe

I want to increment the value of the row A1 (from DATA) by a value I set in another cell, G1 for example (in SCRIPT)

If G1 = 0, I get this:
First Name: Joe

G1 = 1, I'd like to increment the row referring to the name by 1 and produce this:
First Name: Bob

G1=2 it should reference A3 in DATA and so on.
I'm hoping to write my script once and use the increment value (G1) to refer to the desired data as needed.

Anyone know how I can make this happen?
 
Last edited:

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Thank you so much!!

I used this formula, where the cells and sheet names have actual values:
=INDEX(data!D10:D10,sheet2!I1+1)

I've also tried:
=INDEX(data!D:D,sheet2!I1+1)

Both produce errors...
 
Upvote 0

Forum statistics

Threads
1,215,744
Messages
6,126,623
Members
449,322
Latest member
Ricardo Souza

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