formula to find the first cell up from the current cell with a checkbox ticked for Google Sheets

fitnessman

New Member
Joined
Dec 29, 2011
Messages
10
hi guys

is there a formula (for example in cell Q10) to seach from upwards in column A (where i have checkboxes in each cell) to find the row that has the first checkbox ticked UP from Q10 and then calculate the foluma Q10-Q(the row number that the first checkbox is ticked up from Q10)

hope that makes sense am stuck as i cant seem to find anything that will specifically seach upwards from Q10 in column A until it finds the first checkbox ticked. can it be done?
 
i can get =address(2,1,,,)&":"&address(row(),Column(),,,) to produce an array A2:A10 however i cannot get xlookup to recognise this formula as a range i just get a blank cell no error. how can i get the address to be recognised as a range?
The ADDRESS function returns the address of the current cell. So if you are in cell A10, that would be the starting point of your range. So when another function needs a range you could use ADDRESS(ROW(),COLUMN():A2) and that would be the range from A2 to whatever cell that formula is in. You can substitute "A2" for any other cell address. That can be your xlookup range.
 
Last edited:
Upvote 0

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
The ADDRESS function returns the address of the current cell. So if you are in cell A10, that would be the starting point of your range. So when another function needs a range you could use ADDRESS(ROW(),COLUMN():A2) and that would be the range from A2 to whatever cell that formula is in. You can substitute "A2" for any other cell address. That can be your xlookup range.
In the above example the range would be A10:A2
 
Upvote 0

Forum statistics

Threads
1,223,941
Messages
6,175,537
Members
452,652
Latest member
eduedu

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