Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Database Analysis Question

Hi,

I have the following

Column A B C D E F G
Row
1 Z Y X W V U
2 22 1A 2B 3C 4B 5A 6Z
3 33 1H 3H 4K 7B 8I 9L
4 44 7Q 7N 5M 3P 4G 3E

What I need is if ROW 1 = X and Column A = 33 then the answer is 4K. This is
for a spreadsheet that is 200 columns by 25,000 rows so I really appreciate
the help.

Thanks!

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default Database Analysis Question

Hi

Try
=INDEX($A$1:$G$4,MATCH(33,$A$1:$A$4,0),MATCH("X",$ A$1:$G$1,0))

--
Regards

Roger Govier


"skier464" wrote in message
...
Hi,

I have the following

Column A B C D E F G
Row
1 Z Y X W V U
2 22 1A 2B 3C 4B 5A 6Z
3 33 1H 3H 4K 7B 8I 9L
4 44 7Q 7N 5M 3P 4G 3E

What I need is if ROW 1 = X and Column A = 33 then the answer is 4K.
This is
for a spreadsheet that is 200 columns by 25,000 rows so I really
appreciate
the help.

Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Database Analysis Question

Ahh, you really shouldn't multi-post. See another option using OFFSET (albeit
volatile, it requires only a single reference cell to anchor the source
table) in your multi-post in .worksheet.functions.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"skier464" wrote:
Hi,

I have the following

Column A B C D E F G
Row
1 Z Y X W V U
2 22 1A 2B 3C 4B 5A 6Z
3 33 1H 3H 4K 7B 8I 9L
4 44 7Q 7N 5M 3P 4G 3E

What I need is if ROW 1 = X and Column A = 33 then the answer is 4K. This is
for a spreadsheet that is 200 columns by 25,000 rows so I really appreciate
the help.

Thanks!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Database Analysis Question

It worked fine for the example I gave, but it didn't work in the my large
spreadsheet. I have rows labeled 1 - 25000, and columns labeled 1 - 150, and
am trying to call and possible row column combo. I.e. Row 4500, column 45
gives a value at there intersection.

"Roger Govier" wrote:

Hi

Try
=INDEX($A$1:$G$4,MATCH(33,$A$1:$A$4,0),MATCH("X",$ A$1:$G$1,0))

--
Regards

Roger Govier


"skier464" wrote in message
...
Hi,

I have the following

Column A B C D E F G
Row
1 Z Y X W V U
2 22 1A 2B 3C 4B 5A 6Z
3 33 1H 3H 4K 7B 8I 9L
4 44 7Q 7N 5M 3P 4G 3E

What I need is if ROW 1 = X and Column A = 33 then the answer is 4K.
This is
for a spreadsheet that is 200 columns by 25,000 rows so I really
appreciate
the help.

Thanks!




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Database Analysis Question

Didn't seem to work, it returned a value but not the right value
.. Maybe I had an error in the formula? Here is the formula I used
=OFFSET('data'!$A$1, MATCH(Sheet1!B15, 'data'!$1:$1, 0)-1, MATCH(Sheet1!B5,
'data'!A:A,0)-1)


'data' being my main spread sheet, Sheet1 being the secondary sheet. B15
being the column variable, and B5 being the row variable. Also I get ref when
I change the row variable much above 100.


"Max" wrote:

Ahh, you really shouldn't multi-post. See another option using OFFSET (albeit
volatile, it requires only a single reference cell to anchor the source
table) in your multi-post in .worksheet.functions.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"skier464" wrote:
Hi,

I have the following

Column A B C D E F G
Row
1 Z Y X W V U
2 22 1A 2B 3C 4B 5A 6Z
3 33 1H 3H 4K 7B 8I 9L
4 44 7Q 7N 5M 3P 4G 3E

What I need is if ROW 1 = X and Column A = 33 then the answer is 4K. This is
for a spreadsheet that is 200 columns by 25,000 rows so I really appreciate
the help.

Thanks!



  #6   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Database Analysis Question

Think you adapted it wrong ..
.. Here is the formula I used
=OFFSET('data'!$A$1, MATCH(Sheet1!B15, 'data'!$1:$1, 0)-1, MATCH(Sheet1!B5, 'data'!A:A,0)-1)


Try this adaptation instead:
=OFFSET(data!$A$1,MATCH(Sheet1!B5,data!A:A,0)-1,MATCH(Sheet1!B15,data!$1:$1,0)-1)

where Sheet1's B5 houses the row header numbers: 22, 33, 44...
and Sheet1's B15 houses the col header letters: Z, Y, X ...
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"skier464" wrote:
Didn't seem to work, it returned a value but not the right value
. Maybe I had an error in the formula? Here is the formula I used
=OFFSET('data'!$A$1, MATCH(Sheet1!B15, 'data'!$1:$1, 0)-1, MATCH(Sheet1!B5,
'data'!A:A,0)-1)


'data' being my main spread sheet, Sheet1 being the secondary sheet. B15
being the column variable, and B5 being the row variable. Also I get ref when
I change the row variable much above 100.


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Database Analysis Question

Thanks that seemed to have solved the problem

"Max" wrote:

Think you adapted it wrong ..
.. Here is the formula I used
=OFFSET('data'!$A$1, MATCH(Sheet1!B15, 'data'!$1:$1, 0)-1, MATCH(Sheet1!B5, 'data'!A:A,0)-1)


Try this adaptation instead:
=OFFSET(data!$A$1,MATCH(Sheet1!B5,data!A:A,0)-1,MATCH(Sheet1!B15,data!$1:$1,0)-1)

where Sheet1's B5 houses the row header numbers: 22, 33, 44...
and Sheet1's B15 houses the col header letters: Z, Y, X ...
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"skier464" wrote:
Didn't seem to work, it returned a value but not the right value
. Maybe I had an error in the formula? Here is the formula I used
=OFFSET('data'!$A$1, MATCH(Sheet1!B15, 'data'!$1:$1, 0)-1, MATCH(Sheet1!B5,
'data'!A:A,0)-1)


'data' being my main spread sheet, Sheet1 being the secondary sheet. B15
being the column variable, and B5 being the row variable. Also I get ref when
I change the row variable much above 100.


  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default Database Analysis Question

Hi

Then just extend the ranges to

=INDEX($A$1:$ET$25000,MATCH(33,$A$1:$A$25000,0),MA TCH("X",$A$1:$ET$1,0))


--
Regards

Roger Govier


"skier464" wrote in message
...
It worked fine for the example I gave, but it didn't work in the my
large
spreadsheet. I have rows labeled 1 - 25000, and columns labeled 1 -
150, and
am trying to call and possible row column combo. I.e. Row 4500, column
45
gives a value at there intersection.

"Roger Govier" wrote:

Hi

Try
=INDEX($A$1:$G$4,MATCH(33,$A$1:$A$4,0),MATCH("X",$ A$1:$G$1,0))

--
Regards

Roger Govier


"skier464" wrote in message
...
Hi,

I have the following

Column A B C D E F G
Row
1 Z Y X W V U
2 22 1A 2B 3C 4B 5A 6Z
3 33 1H 3H 4K 7B 8I 9L
4 44 7Q 7N 5M 3P 4G 3E

What I need is if ROW 1 = X and Column A = 33 then the answer is
4K.
This is
for a spreadsheet that is 200 columns by 25,000 rows so I really
appreciate
the help.

Thanks!






  #9   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Database Analysis Question

You're welcome !
Glad you got it working ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"skier464" wrote:
Thanks that seemed to have solved the problem

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
Analysis Toolpak Question mphell0 Excel Discussion (Misc queries) 2 February 13th 06 01:49 PM
multiple items in database Peter Excel Worksheet Functions 2 June 15th 05 08:19 PM
Database Functions - question using formulas as criteria msnews.microsoft.com Excel Worksheet Functions 0 June 9th 05 12:10 PM
Import from Database using field from excel. BD Excel Discussion (Misc queries) 1 May 10th 05 10:31 PM
The Template Wizard retains the original location for my database Packwood Excel Discussion (Misc queries) 0 April 15th 05 05:25 PM


All times are GMT +1. The time now is 03:02 AM.

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"