How to jump to a cell based on a number in another cell

asivaraman

New Member
Joined
Aug 12, 2019
Messages
13
I have a project tracking sheet.

I need to jump to a cell based on the number i fill in another cell.
I have attached an image for visual reference.
When I type number "2" in F5, i need the cell to jump to R5 (i.e Oct-30)

I may create up to 52 weeks so the formula should work accordingly.

Please help. or suggest another easier way?
Thank you
 

Attachments

  • Capture.JPG
    Capture.JPG
    85.7 KB · Views: 24
Actually I can write it better like this:
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)

'Modified  10/19/2020  1:01:13 AM  EDT
If Target.Cells.CountLarge > 1 Or IsEmpty(Target) Then Exit Sub

If Target.Column = 6 And Target.Row > 4 Then

    Select Case Target.Value

        Case 1 To 10: Target(, Target - 1 * 5 + 13).Select

    End Select

End If

End Sub
 
Upvote 0

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,217,413
Messages
6,136,474
Members
450,015
Latest member
excel_beta_345User

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