Simpler excel function to match for values in a range/vector/range and return it's row number

TTYF

New Member
Joined
Jan 16, 2023
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I am looking for a simpler nested excel function to return the row no. of a searched text/No. from a range. I couldn't quite wrapped my head around on the excel function. I do think this is achievable and easy. Do you have any better ways ?

instead of:
=MATCH("F",1:1,0)
=MATCH("F",2:2,0)
=MATCH("F",3:3,0)
=MATCH("F",4:4,0)
=MATCH("F",5:5,0)
=MATCH("F",6:6,0)

Summary: Trying to get the row number of searched word "F" from a range if you do not know which specific column or row the search text is in.

Thanks alot. Appreciate it.

T
 

Attachments

  • Pic for upload.JPG
    Pic for upload.JPG
    25.5 KB · Views: 17

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Try this:

=AGGREGATE(15,6,Row(rangge)/(Range = "F"),1)

Or:

=AGGREGATE(14,6,Row(rangge)/(Range = "F"),1)
 
Upvote 0
Hi Phuoc, I think it doesn't work. Are you able to use reference from excel pic and come out with it? Does it work on your end?
 
Upvote 0
Book1
ABCDEFGHIJKLM
13
2
3F
4
5
6
7
8
9
10
11
Sheet1
Cell Formulas
RangeFormula
A1A1=AGGREGATE(15,6,ROW(C1:M11)/(C1:M11 = "F"),1)
 
Upvote 0
How about if u use it to find a number ? I had #num error
 
Upvote 0

Forum statistics

Threads
1,223,268
Messages
6,171,100
Members
452,379
Latest member
IainTru

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