Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
elliekev26
 
Posts: n/a
Default 2 Conditions True, Many Variables, Return Result

I have an extensive spreadsheet that contains tables of data for account
names by year. I would like to have a cell return data from the tables when
the account name and applicable year are typed into a worksheet. For
example, in workbook 1, separate 4 x 3 tables are set up for Accounts "A"
thru ""G", for years "1994" -"2004" (77 tables in all--7 accounts/11 years).
In workbook 2, when the user types in "A" in A1 and "2004" in A2, I would
like A3 to show the applicable table. If I have to reproduce the table cell
by cell that's OK. I just need help with reproducing the cell results from
the applicable table when the appropriate account/year are entered. I can't
nest IF's because I have too many conditions to test for.

Any ideas?
  #2   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Ellie,

How are your 77 tables arranged? Tell uswhether they are on separate sheets, single sheet, what the
cell locations are, etc.

It is likely that some combination of INDEX, MATCH, VLOOKUP, etc. will do the trick.

HTH,
Bernie
MS Excel MVP


"elliekev26" wrote in message
...
I have an extensive spreadsheet that contains tables of data for account
names by year. I would like to have a cell return data from the tables when
the account name and applicable year are typed into a worksheet. For
example, in workbook 1, separate 4 x 3 tables are set up for Accounts "A"
thru ""G", for years "1994" -"2004" (77 tables in all--7 accounts/11 years).
In workbook 2, when the user types in "A" in A1 and "2004" in A2, I would
like A3 to show the applicable table. If I have to reproduce the table cell
by cell that's OK. I just need help with reproducing the cell results from
the applicable table when the appropriate account/year are entered. I can't
nest IF's because I have too many conditions to test for.

Any ideas?



  #3   Report Post  
elliekev26
 
Posts: n/a
Default

The tables are essentially 3 columns by 4 rows and and simply stacked on top
on one another with a few emply cells in between. For example,

1st table (Account A, 2004) covers L15:N18
2nd table (Acount A, 2003) covers L32:N35
3rd table (Account A, 2002) covers L40:N43
....
77th table (Account G, 1994) covers L222:N225

The spaces (empty cells) between the tables are not uniform due to other
data on the spreadsheet. My goal is for the user to use a separate workbook
to input the Account name in A1, the year in B1 and have the appropriate
table appear in C1:E4

Thanks,

Kevin



"Bernie Deitrick" wrote:

Ellie,

How are your 77 tables arranged? Tell uswhether they are on separate sheets, single sheet, what the
cell locations are, etc.

It is likely that some combination of INDEX, MATCH, VLOOKUP, etc. will do the trick.

HTH,
Bernie
MS Excel MVP


"elliekev26" wrote in message
...
I have an extensive spreadsheet that contains tables of data for account
names by year. I would like to have a cell return data from the tables when
the account name and applicable year are typed into a worksheet. For
example, in workbook 1, separate 4 x 3 tables are set up for Accounts "A"
thru ""G", for years "1994" -"2004" (77 tables in all--7 accounts/11 years).
In workbook 2, when the user types in "A" in A1 and "2004" in A2, I would
like A3 to show the applicable table. If I have to reproduce the table cell
by cell that's OK. I just need help with reproducing the cell results from
the applicable table when the appropriate account/year are entered. I can't
nest IF's because I have too many conditions to test for.

Any ideas?




  #4   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

KEvin,

You don't say where your labels a I will assume that a label (Account A, etc) for accounts appear
in column J, and that the year label is in column K. IF that isn't the case, change the column
letters in the next formula as appropriate.

In cell B1, array enter (enter using Ctrl-Shift-Enter) the formula

=SUM(MIN(IF((J1:J225=A1)*(K1:K225=B1),ROW(J1:J225) )))

Then in C1, enter the formula

=INDEX(L:L,$B$2+ROW()-1)

and copy cell C1 to C1:E4.

HTH,
Bernie
MS Excel MVP


"elliekev26" wrote in message
...
The tables are essentially 3 columns by 4 rows and and simply stacked on top
on one another with a few emply cells in between. For example,

1st table (Account A, 2004) covers L15:N18
2nd table (Acount A, 2003) covers L32:N35
3rd table (Account A, 2002) covers L40:N43
...
77th table (Account G, 1994) covers L222:N225

The spaces (empty cells) between the tables are not uniform due to other
data on the spreadsheet. My goal is for the user to use a separate workbook
to input the Account name in A1, the year in B1 and have the appropriate
table appear in C1:E4

Thanks,

Kevin



"Bernie Deitrick" wrote:

Ellie,

How are your 77 tables arranged? Tell uswhether they are on separate sheets, single sheet, what
the
cell locations are, etc.

It is likely that some combination of INDEX, MATCH, VLOOKUP, etc. will do the trick.

HTH,
Bernie
MS Excel MVP


"elliekev26" wrote in message
...
I have an extensive spreadsheet that contains tables of data for account
names by year. I would like to have a cell return data from the tables when
the account name and applicable year are typed into a worksheet. For
example, in workbook 1, separate 4 x 3 tables are set up for Accounts "A"
thru ""G", for years "1994" -"2004" (77 tables in all--7 accounts/11 years).
In workbook 2, when the user types in "A" in A1 and "2004" in A2, I would
like A3 to show the applicable table. If I have to reproduce the table cell
by cell that's OK. I just need help with reproducing the cell results from
the applicable table when the appropriate account/year are entered. I can't
nest IF's because I have too many conditions to test for.

Any ideas?






  #5   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Sorry, I missed the part about the separate worksheet. Get the formulas working on the same
worksheet, then select the range, cut and paste it into a clean worksheet.

HTH,
Bernie
MS Excel MVP


"Bernie Deitrick" <deitbe @ consumer dot org wrote in message
...
KEvin,

You don't say where your labels a I will assume that a label (Account A, etc) for accounts
appear in column J, and that the year label is in column K. IF that isn't the case, change the
column letters in the next formula as appropriate.

In cell B1, array enter (enter using Ctrl-Shift-Enter) the formula

=SUM(MIN(IF((J1:J225=A1)*(K1:K225=B1),ROW(J1:J225) )))

Then in C1, enter the formula

=INDEX(L:L,$B$2+ROW()-1)

and copy cell C1 to C1:E4.

HTH,
Bernie
MS Excel MVP


"elliekev26" wrote in message
...
The tables are essentially 3 columns by 4 rows and and simply stacked on top
on one another with a few emply cells in between. For example,

1st table (Account A, 2004) covers L15:N18
2nd table (Acount A, 2003) covers L32:N35
3rd table (Account A, 2002) covers L40:N43
...
77th table (Account G, 1994) covers L222:N225

The spaces (empty cells) between the tables are not uniform due to other
data on the spreadsheet. My goal is for the user to use a separate workbook
to input the Account name in A1, the year in B1 and have the appropriate
table appear in C1:E4

Thanks,

Kevin



"Bernie Deitrick" wrote:

Ellie,

How are your 77 tables arranged? Tell uswhether they are on separate sheets, single sheet, what
the
cell locations are, etc.

It is likely that some combination of INDEX, MATCH, VLOOKUP, etc. will do the trick.

HTH,
Bernie
MS Excel MVP


"elliekev26" wrote in message
...
I have an extensive spreadsheet that contains tables of data for account
names by year. I would like to have a cell return data from the tables when
the account name and applicable year are typed into a worksheet. For
example, in workbook 1, separate 4 x 3 tables are set up for Accounts "A"
thru ""G", for years "1994" -"2004" (77 tables in all--7 accounts/11 years).
In workbook 2, when the user types in "A" in A1 and "2004" in A2, I would
like A3 to show the applicable table. If I have to reproduce the table cell
by cell that's OK. I just need help with reproducing the cell results from
the applicable table when the appropriate account/year are entered. I can't
nest IF's because I have too many conditions to test for.

Any ideas?







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
Count Occurances if two conditions true Ed Gregory Excel Worksheet Functions 5 September 8th 05 08:26 PM
How do I check the conditions of 2 fields to return a result Jimbob Excel Discussion (Misc queries) 3 January 17th 05 12:59 PM
Amount or Numbers in Words ron New Users to Excel 6 December 24th 04 08:32 PM
Return result from multiple criteria Pat Excel Worksheet Functions 6 December 16th 04 04:39 PM
Spellnumber Norman Jones Excel Worksheet Functions 6 December 13th 04 08:21 AM


All times are GMT +1. The time now is 12:05 AM.

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"