#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Formula - help??

A sample of the data I'm working with looks like this:

Formations
313** 313**313** 317** 317**317**
TSC
21960000 12.737
21961000 10.259
21962000 11.584 12.860 24.542
21963000 13.155
21964000 14.038
21965000 14.333 15.511 32.200
21967000 11.293 12.762
24207000
I am trying to write a formula which will return the value of, for example,
TSC 21962000 and formation 317**. I 'm sure it's easy but for the life of me
I can't get it to work. Can someone help please?


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Formula - help??

=INDEX(A1:D11,MATCH(21962000,A1:A10,0),MATCH("317* *",B1:E1,0))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"yhtak" wrote in message
...
A sample of the data I'm working with looks like this:

Formations
313** 313**313** 317** 317**317**
TSC
21960000 12.737
21961000 10.259
21962000 11.584 12.860 24.542
21963000 13.155
21964000 14.038
21965000 14.333 15.511 32.200
21967000 11.293 12.762
24207000
I am trying to write a formula which will return the value of, for

example,
TSC 21962000 and formation 317**. I 'm sure it's easy but for the life of

me
I can't get it to work. Can someone help please?




  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Formula - help??

I must be doing something wrong, I got a value pf zero.

"yhtak" wrote:

A sample of the data I'm working with looks like this:

Formations
313** 313**313** 317** 317**317**
TSC
21960000 12.737
21961000 10.259
21962000 11.584 12.860 24.542
21963000 13.155
21964000 14.038
21965000 14.333 15.511 32.200
21967000 11.293 12.762
24207000
I am trying to write a formula which will return the value of, for example,
TSC 21962000 and formation 317**. I 'm sure it's easy but for the life of me
I can't get it to work. Can someone help please?


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Formula - help??

It's difficult to see how your data was laid out, but maybe...

=INDEX(A1:D9,MATCH(21962000,A1:A9,0),MATCH("317~*~ *",A1:D1,0))

If that doesn't help, use the whole range in that first portion of the formula.

then use just column 1 of the range in the first match().

Then use just row 1 of the range in the second match().

And the ~*~* will tell excel to treat the asterisks as asterisks--not wildcards.



yhtak wrote:

I must be doing something wrong, I got a value pf zero.

"yhtak" wrote:

A sample of the data I'm working with looks like this:

Formations
313** 313**313** 317** 317**317**
TSC
21960000 12.737
21961000 10.259
21962000 11.584 12.860 24.542
21963000 13.155
21964000 14.038
21965000 14.333 15.511 32.200
21967000 11.293 12.762
24207000
I am trying to write a formula which will return the value of, for example,
TSC 21962000 and formation 317**. I 'm sure it's easy but for the life of me
I can't get it to work. Can someone help please?



--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Formula - help??

This is great, thanks very much for your help.

"Dave Peterson" wrote:

It's difficult to see how your data was laid out, but maybe...

=INDEX(A1:D9,MATCH(21962000,A1:A9,0),MATCH("317~*~ *",A1:D1,0))

If that doesn't help, use the whole range in that first portion of the formula.

then use just column 1 of the range in the first match().

Then use just row 1 of the range in the second match().

And the ~*~* will tell excel to treat the asterisks as asterisks--not wildcards.



yhtak wrote:

I must be doing something wrong, I got a value pf zero.

"yhtak" wrote:

A sample of the data I'm working with looks like this:

Formations
313** 313**313** 317** 317**317**
TSC
21960000 12.737
21961000 10.259
21962000 11.584 12.860 24.542
21963000 13.155
21964000 14.038
21965000 14.333 15.511 32.200
21967000 11.293 12.762
24207000
I am trying to write a formula which will return the value of, for example,
TSC 21962000 and formation 317**. I 'm sure it's easy but for the life of me
I can't get it to work. Can someone help please?



--

Dave Peterson

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 then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


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

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

About Us

"It's about Microsoft Excel"