#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 99
Default MATCH problem

I'm trying to create a spreadsheet for a colleague

I have the follwing numbers placed in Data!C4:L4
20 25 30 35 40 45 50 55 60 65

I use this formula

MATCH(B3,Data!C4:L4,1) to return the column number.

If the user enters anything between for instance 30 and 35 it returns 3 as
it is supposed to.
Unfortunately that is not what my colleague wants. He wants 30, 31, 32 to
return 3 and 33, 34 and 35 to return 4. And same for other values of course.

Is that possible at all using worksheetfunctions or do I have to create my
own UDF?

Jan


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default MATCH problem

Hi,
try

=MATCH(CEILING(B3,4),C4:L4,1)

"Jan Kronsell" wrote:

I'm trying to create a spreadsheet for a colleague

I have the follwing numbers placed in Data!C4:L4
20 25 30 35 40 45 50 55 60 65

I use this formula

MATCH(B3,Data!C4:L4,1) to return the column number.

If the user enters anything between for instance 30 and 35 it returns 3 as
it is supposed to.
Unfortunately that is not what my colleague wants. He wants 30, 31, 32 to
return 3 and 33, 34 and 35 to return 4. And same for other values of course.

Is that possible at all using worksheetfunctions or do I have to create my
own UDF?

Jan


.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 99
Default MATCH problem

Perferct, thank you.

Jan

Eduardo wrote:
Hi,
try

=MATCH(CEILING(B3,4),C4:L4,1)

"Jan Kronsell" wrote:

I'm trying to create a spreadsheet for a colleague

I have the follwing numbers placed in Data!C4:L4
20 25 30 35 40 45 50 55 60 65

I use this formula

MATCH(B3,Data!C4:L4,1) to return the column number.

If the user enters anything between for instance 30 and 35 it
returns 3 as it is supposed to.
Unfortunately that is not what my colleague wants. He wants 30, 31,
32 to return 3 and 33, 34 and 35 to return 4. And same for other
values of course.

Is that possible at all using worksheetfunctions or do I have to
create my own UDF?

Jan


.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default MATCH problem

Here's one way:

=IF(B3<20,"",MATCH(B3+2,Data!C4:L4,1))

Hope this helps.

Pete

On Oct 29, 11:16*am, "Jan Kronsell"
wrote:
I'm trying to create a spreadsheet for a colleague

I have the follwing numbers placed in Data!C4:L4
20 25 30 35 40 45 50 55 60 65

I use this formula

MATCH(B3,Data!C4:L4,1) to return the column number.

If the user enters anything between for instance 30 and 35 it returns 3 as
it is supposed to.
Unfortunately that is not what my colleague wants. He wants 30, 31, 32 to
return 3 and 33, 34 and 35 to return 4. And same for other values of course.

Is that possible at all using worksheetfunctions or do I have to create my
own UDF?

Jan


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MATCH problem Smallweed Excel Worksheet Functions 3 January 10th 09 05:59 PM
Match function problem SJC Excel Worksheet Functions 3 September 14th 07 06:02 PM
Index/Match problem Lisa Excel Worksheet Functions 7 April 26th 07 06:28 PM
Match Problem Micos3 Excel Discussion (Misc queries) 0 April 22nd 07 01:56 AM
match problem bill gras Excel Worksheet Functions 8 December 30th 05 05:48 AM


All times are GMT +1. The time now is 06:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"