![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 12
|
Is there a function that will return the location of a text string within a worksheet?
For example. If I have a list of months - January to December in "coloumn A" and searched for March. The result of my function would be the position "A3" |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Sydney/Brisbane , Australia
Posts: 539
|
are you doing the search via VBA?
Do you want to type the "string" you are looking for in a cell and have the "location, returned? or do you want to use the Edit/Find [ This Message was edited by: Qroozn on 2002-04-30 21:41 ] |
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Posts: 12
|
I have a list of strings (months) that will be searched for. So effect it will be typed.
My project is this I have a list of months and hours worked by the side of each month in the next coloumn. I want to be able to select a start and stop date (month) and then be able to sum the hours worked during that period. [ This Message was edited by: sdurber on 2002-04-30 21:46 ] |
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
|
Quote:
=ADDRESS(MATCH(C1,A1:A12),COLUMN(A:A),4,1,) if your data is housed in cells A1:A12, and C1 houses March, the formula will result in A3 Hope This Helps!
__________________
Regards! Yogi Anand, D.Eng, P.E. Energy Efficient Building Network LLC www.energyefficientbuild.com |
|
|
|
|
|
|
#5 |
|
New Member
Join Date: Apr 2002
Posts: 12
|
Thanks very much for the suggestions guys.
It worked a treat. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|