How to reference a cell using a number in another cell

Pumperkin

Board Regular
Joined
Jan 24, 2019
Messages
59
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have some formula which will render the data from blank cells (concatenated).

I want to tidy up my worksheet so that only the data that I want to show (the ones next to blank cells) is shown. I am currently on line 469 and don't want to have to scroll down all the time.

I have managed to get the row number of first blank showing in cell G1 on Sheet 2.

I want to reference cell Sheet1!L(Sheet2!G1), where G1 is currently 469 but will forever go up.

Is there a way of inputting this?
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
You could get the address like such:

=ADDRESS(Sheet2!$G$1,12,1,1,"Sheet1")

Is that what you want?
 
Upvote 0
Hi, Thanks for the response.

Not sure how I'd input that :/

My formula is:

Code:
=IF(Shipped!L469="", Shipped!A469&" "&Shipped!B469&" "&Shipped!C469&" "&Shipped!J469&""&Shipped!D469, "")

Basically every time it says 469, I want that to instead be the figure in G1, which is dynamic depending on where the first blank falls.

So something like Shipped!L(G1) but probably written more elegantly...
 
Upvote 0
So you want the value in the cell not its reference? Then try indirect:

INDIRECT("Shipped!L"&$G$1)

as an example.
 
Upvote 0
Legend :)

'Tis a thing of beauty when a formula works as intended :)

Code:
=IF(INDIRECT("Shipped!L"&$G1)="", (INDIRECT("Shipped!A"&$G1))&" "&(INDIRECT("Shipped!B"&$G1))&" "&(INDIRECT("Shipped!C"&G1))&" "&(INDIRECT("Shipped!J"&G1))&""&(INDIRECT("Shipped!D"&G1)), "")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,951
Messages
6,122,446
Members
449,083
Latest member
Ava19

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