Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Excel Index and Match to capture data

Posted on 2013-01-10
8
Medium Priority
?
454 Views
Last Modified: 2013-01-10
I have a worksheet called Cash Flow (see attached sample) which is being generated from an accounting software. In the Financial_Data Worksheet I want to basically name in column A the items I want to chart and populate the numbers each month based on the Cash Flow worksheet. The idea is to generate a new Cash Flow report each month and the Financial_Data will then capture the new data which will then update a series of charts.

I have an Index and Match formula to capture the numbers I want but cannot get it to work
Test.xlsx
0
Comment
Question by:joeserrone
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 50

Assisted Solution

by:barry houdini
barry houdini earned 1000 total points
ID: 38763591
You have to make sure all descriptions are in the same column of Cash Flow - I moved all to column B and then used this formula in the other sheet

=INDEX('Cash Flow'!$G$2:$R$401,MATCH($A2,'Cash Flow'!$B$2:$B$401,0),MATCH(B$1,'Cash Flow'!$G$1:$R$1,0))

see attached

regards, barry
Test-barry.xlsx
0
 

Author Comment

by:joeserrone
ID: 38763643
Hi Barry,
That is the problem, the accounting software will format that report in a particular way, is there anyway that search this from column A to E ? this is just an example, the actual report is much larger and this can become a convoluted process.
0
 
LVL 33

Expert Comment

by:Rob Henson
ID: 38763653
Your initial formula also had a circular reference in the first section. The formula for retrieving data was within the area that you were looking to retrieve data from.

If you know (and can't change that) the headers are going to be in different columns, you can allow for this in the 3 different data retrieval formulae.

Net Income =INDEX('Cash Flow'!$D$1:$R$28,MATCH($A$2,'Cash Flow'!$D$1:$D$401,0),MATCH(B$1,'Cash Flow'!$D$1:$R$1,0))

Start Cash =INDEX('Cash Flow'!$B$1:$R$28,MATCH($A$3,'Cash Flow'!$B$1:$B$401,0),MATCH(B$1,'Cash Flow'!$B$1:$R$1,0))

End Cash =INDEX('Cash Flow'!$A$1:$R$28,MATCH($A$4,'Cash Flow'!$A$1:$A$401,0),MATCH(B$1,'Cash Flow'!$A$1:$R$1,0))

I have made bold the differences between each of the above.

Thanks
Rob H
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 33

Expert Comment

by:Rob Henson
ID: 38763678
Add a helper column to the left of the data with, for row 2:

=B2&C2&D2&E2&F2

This will concatenate all headers into column A, assuming there isn't multiple headers on one row!!

Then hide and refer to column A for all as suggested by Barry. I would prefer the consistent formula approach rather than having to tweak depending on data required.

Thanks,
Rob H
0
 
LVL 33

Accepted Solution

by:
Rob Henson earned 1000 total points
ID: 38763688
See attached.
Test.xlsx
0
 

Author Comment

by:joeserrone
ID: 38763747
That is a great Idea Rob, I added the helper column to concatenate and modified Barry's initial Formula to accommodate for the added column but the last index column is giving me a REF error.
Test.xlsx
0
 
LVL 23

Expert Comment

by:NBVC
ID: 38764030
The INDEXed range should include column S


INDEX('Cash Flow'!$G$2:$S$401,...
0
 

Author Comment

by:joeserrone
ID: 38764445
I've requested that this question be closed as follows:

Accepted answer: 0 points for joeserrone's comment #a38763747
Assisted answer: 250 points for barryhoudini's comment #a38763591
Assisted answer: 250 points for robhenson's comment #a38763678

for the following reason:

Thanks!!!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

597 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question