Get cell number from another Cell value

goble

New Member
Joined
Oct 7, 2010
Messages
46
Office Version
  1. 2019
Platform
  1. Windows
Hello,

I have a column A2 with value "1". I would like the formula in B2 to generate "C1". So if the value of A2 is 1, then B2=C1+5. Where C1 is generated because A2 value is 1. So it is 405.
If value of A2 is 2, then use C2 in generated in formula of B2. Formula at B2 will then be "=c2+5". So it is 505.


400
1
Formula here is "=c1+5". So it is 405.
500
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
How about
Excel Formula:
=INDEX(C:C,A2)+5
 
Upvote 0
Solution
what if A2 was 12, or 16 ?
can it only be 1 or 2

are the values 400 & 500 already entered into the cell
 
Upvote 0
Hello and thanks,

If A2 =12, then B2=C12+500
If A2 =16, then B2=C16+500

Yes values of 400 & 500 are already entered.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,575
Messages
6,125,619
Members
449,240
Latest member
lynnfromHGT

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