Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Dynamic Row Formula

Hello,

I have a spreadsheet with multiple worksheets. I am trying to get specific
data from a named range (LOANS) in one of the sheets into a cell on a
different sheet. My main sheet (named DATA)contains info such as Name, Acct,
LoanBal, and NetBal and lists all customers. The other sheet (named INFO)
contains only certain customers meeting a particular rating number. I want to
have a formula where I can bring back the specific data that I need on the
INFO sheet. The INFO sheet has only the Name and Acct existing and I want to
return the LoanBal for the matching Name and Acct. If I enter the formula of
=INDEX(LOAN,72,6) it will bring back the exact LoanBal that I need. The
problem is for the ROW value I manually typed 72 (where the correct LoanBal
is located). This of course can change as the report gets updated. The column
value will stay as 6. How can I create a dynamic formula for the ROW criteria
so that it will know which row is needed? For example; a formula that would
return 72 where I entered it manually. I have already tried using the MATCH
function but I must be doing something wrong because I cannot make it work.
Any suggestions or examples will be greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default Dynamic Row Formula

Hi Dave,

A question - does the account # uniquely identify the line you need? or do
you need both the account # and name to tell which row?

Match will work in the first case, but then so will VLOOKUP. In the second
case you will need something more complicated:

If you are bringing back numerical data then:
=SUMPRODUCT((Sheet1!$A$1:$A$23=Sheet2!A1)*(Sheet1! $B$1:$B$23=Sheet2!B1)*Sheet1!C1:C23)

If its text data then:
{=INDEX(Sheet1!$A$1:$C$23,MAX((Sheet1!$A$1:$A$23=S heet2!A1)*(Sheet1!$B$1:$B$23=Sheet2!B1)*(ROW(Sheet 1!$B$1:$B$23))),3)}
which is array entered.
--
Cheers,
Shane Devenshire


"Dave Y" wrote:

Hello,

I have a spreadsheet with multiple worksheets. I am trying to get specific
data from a named range (LOANS) in one of the sheets into a cell on a
different sheet. My main sheet (named DATA)contains info such as Name, Acct,
LoanBal, and NetBal and lists all customers. The other sheet (named INFO)
contains only certain customers meeting a particular rating number. I want to
have a formula where I can bring back the specific data that I need on the
INFO sheet. The INFO sheet has only the Name and Acct existing and I want to
return the LoanBal for the matching Name and Acct. If I enter the formula of
=INDEX(LOAN,72,6) it will bring back the exact LoanBal that I need. The
problem is for the ROW value I manually typed 72 (where the correct LoanBal
is located). This of course can change as the report gets updated. The column
value will stay as 6. How can I create a dynamic formula for the ROW criteria
so that it will know which row is needed? For example; a formula that would
return 72 where I entered it manually. I have already tried using the MATCH
function but I must be doing something wrong because I cannot make it work.
Any suggestions or examples will be greatly appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Dynamic Row Formula

Hi Shane,

The acct number is unique and I think that is all I need to identify the row
to get me the LoanBal that i need. I will play with the formulas(s) that you
have provided tomorrow when I get back to work. Thank you for the quick
reply. I really appreciate it.

"ShaneDevenshire" wrote:

Hi Dave,

A question - does the account # uniquely identify the line you need? or do
you need both the account # and name to tell which row?

Match will work in the first case, but then so will VLOOKUP. In the second
case you will need something more complicated:

If you are bringing back numerical data then:
=SUMPRODUCT((Sheet1!$A$1:$A$23=Sheet2!A1)*(Sheet1! $B$1:$B$23=Sheet2!B1)*Sheet1!C1:C23)

If its text data then:
{=INDEX(Sheet1!$A$1:$C$23,MAX((Sheet1!$A$1:$A$23=S heet2!A1)*(Sheet1!$B$1:$B$23=Sheet2!B1)*(ROW(Sheet 1!$B$1:$B$23))),3)}
which is array entered.
--
Cheers,
Shane Devenshire


"Dave Y" wrote:

Hello,

I have a spreadsheet with multiple worksheets. I am trying to get specific
data from a named range (LOANS) in one of the sheets into a cell on a
different sheet. My main sheet (named DATA)contains info such as Name, Acct,
LoanBal, and NetBal and lists all customers. The other sheet (named INFO)
contains only certain customers meeting a particular rating number. I want to
have a formula where I can bring back the specific data that I need on the
INFO sheet. The INFO sheet has only the Name and Acct existing and I want to
return the LoanBal for the matching Name and Acct. If I enter the formula of
=INDEX(LOAN,72,6) it will bring back the exact LoanBal that I need. The
problem is for the ROW value I manually typed 72 (where the correct LoanBal
is located). This of course can change as the report gets updated. The column
value will stay as 6. How can I create a dynamic formula for the ROW criteria
so that it will know which row is needed? For example; a formula that would
return 72 where I entered it manually. I have already tried using the MATCH
function but I must be doing something wrong because I cannot make it work.
Any suggestions or examples will be greatly appreciated.

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
How to convert a static formula to dynamic formula ? Pisistratus Excel Worksheet Functions 3 July 5th 07 01:54 PM
Dynamic Formula with Dynamic Address dmz_asdf Excel Worksheet Functions 7 December 15th 06 07:13 PM
Help with copying dynamic column selected based on remote cell value and dynamic formula fill ers Charts and Charting in Excel 0 March 1st 06 01:05 AM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
Help with dynamic sum formula Aussie CPA Excel Worksheet Functions 4 October 7th 05 05:28 PM


All times are GMT +1. The time now is 02:18 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"