Thread
:
Search in row
View Single Post
#
5
Posted to microsoft.public.excel.programming
Don Guillett[_4_]
external usenet poster
Posts: 2,337
Search in row
Sub findunm()
MsgBox Cells(Application.Match(1700, Columns(4)), "c")
'or if 1700 in b2
MsgBox Cells(Application.Match(Cells(2, 2), Columns(4)), "c")
End Sub
or a built in function
=INDIRECT("c"&MATCH(B2,D3:D23)+2)
--
Don Guillett
SalesAid Software
"Soniya" wrote in message
ups.com...
Hi all,
I have data something like:
type from to
a 1000 1500
b 1501 2500
c 2501 2750
i want to search for a number and find out in which row it comes
for eg: if i type 1750 it comes in b (starting 1501 and ending 2500)
how can i acheive this using VBA?
Thanks
Reply With Quote
Don Guillett[_4_]
View Public Profile
Find all posts by Don Guillett[_4_]