Returning a cell with a specified value

mkingrey

New Member
Joined
Nov 2, 2005
Messages
49
Does anyone know of a function or formula that I can use to return the cell number of a cell with a specific value in a given range?

For instance in cells A1:A30 I want to know the cell number (A3, etc.) of a cell that contains the value "RENEW."

Thanks, MK
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Try this:
Finding_First_Positive.xls
ABCD
1RenewA1
2A3
3RenewA6
4 
5 
6Renew 
Sheet2


Formula in B1 is:
=IF(ROW($A2)-ROW($A$1)>COUNTIF($A$1:$A$285,"RENEW"),"","A"&SMALL(IF($A$1:$A$285="RENEW",ROW($A$1:$A$285)),ROW($A2)-ROW($A$1)))

Which must be evaluated with the Ctrl+Shift+enter key combo
Then, copy down the formula.
 
Upvote 0
From another message board posting:
=CELL("address",INDEX(B4:D9,MIN(IF((1-ISBLANK(B4:D9))*(B4:D9=F5),ROW(B4:D9)-ROW(B4)+1)),MIN(IF((1-ISBLANK(B4:D9))*(B4:D9=F5),COLUMN(B4:D9)-COLUMN(B4)+1))))

Edit a cell, put the above into the cell's formula bar, and confirm it with the combination of CTRL+SHIFT+ENTER. The cell where you put this formula will then look for your value contained in F5 and return the corresponding cell reference from the range of B4 to D9


B4 to D9 represents the search area to be compared to the value stored in F5.

The other posting was titled "Cell Address FORMULA" and was posted by pegbol if you want to look for it for further clarification. I think there were some add-on questions related to this as well ni that posting.

HTH
 
Upvote 0

Forum statistics

Threads
1,219,162
Messages
6,146,659
Members
450,706
Latest member
LGVBPP

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