Broken formula + tweaking

KymBradshaw

New Member
Joined
Oct 29, 2013
Messages
15
Hi guys,

This should be a fairly straight forward one for you. Hopefully!
wink.gif


I've been making a Statement of Account, but I've kinda broke my formula with constant tinkering. It was working fine when I did a dummy run with it and it was all within one workbook, but doesn't work in practice when I modified it to work with outside files. As far as I can see it *should* be working fine, but just isn't! Can anyone shed some light on it for me please?

=IF(ISERROR(INDEX('[Sales 2013-2014 Kym Edit.xlsx]April 2013'!$B$3:$K$50,SMALL(IF('[Sales 2013-2014 Kym Edit.xlsx]April 2013'!$C$3:$C$50=$A$8,ROW('[Sales 2013-2014 Kym Edit.xlsx]April 2013'!$C$3:$C$50)),ROW(2:2)),5)),"",INDEX('[Sales 2013-2014 Kym Edit.xlsx]April 2013'!$B$3:$K$50,SMALL(IF('[Sales 2013-2014 Kym Edit.xlsx]April 2013'!$C$3:$C$50=$A$8,ROW('[Sales 2013-2014 Kym Edit.xlsx]April 2013'!$C$3:$C$50)),ROW(2:2)),5))

It's supposed to list all invoices for a given client, but it's being a pain where I thought it would be a relatively straight forward task.

Secondly, the Sales 2013-2014 workbook from which the data is harvested has a worksheet for each month and my formula is only good for one. At this rate I'll need to have 12 versions of the above; is there any way I can tweak it so it will aggregate all 12 months data?

Any advice is hugely appreciated.

Here are the files in question:

Statement of account
https://www.dropbox.com/s/nemcgbglpqxu78f/Statement of Account - dummy data.xlsx

Invoice lists
https://www.dropbox.com/s/vq3lpc6zgmbuqma/Sales 2013-2014 - Kym Edit.xlsx
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
ive downloaded the tow workbooks and when it open it give me error two however the formula is fine

what i see
=IF(ISERROR(INDEX('[Sales 2013-2014 kim edit.xlsx]April 2013'!$B$3:$K$50,SMALL(IF('C:\Users\Sandra\Dropbox\InnerLondonCleaning Ltd\Accounts\Accounts 2013-2014\[Sales 2013-2014.xlsx]April 2013'!$C$3:$C$50=$A$8,ROW('C:\Users\Sandra\Dropbox\InnerLondonCleaning Ltd\Accounts\Accounts 2013-2014\[Sales 2013-2014.xlsx]April 2013'!$C$3:$C$50)),ROW(1:1)),5)),"",INDEX('C:\Users\Sandra\Dropbox\InnerLondonCleaning Ltd\Accounts\Accounts 2013-2014\[Sales 2013-2014.xlsx]April 2013'!$B$3:$K$50,SMALL(IF('C:\Users\Sandra\Dropbox\InnerLondonCleaning Ltd\Accounts\Accounts 2013-2014\[Sales 2013-2014.xlsx]April 2013'!$C$3:$C$50=$A$8,ROW('C:\Users\Sandra\Dropbox\InnerLondonCleaning Ltd\Accounts\Accounts 2013-2014\[Sales 2013-2014.xlsx]April 2013'!$C$3:$C$50)),ROW(1:1)),5))

what you should see
=IF(ISERROR(INDEX('[Sales 2013-2014 - Kym Edit.xlsx]April 2013'!$B$3:$K$50,SMALL(IF('[Sales 2013-2014 - Kym Edit.xlsx]April 2013'!$C$3:$C$50=$A$8,ROW('[Sales 2013-2014 - Kym Edit.xlsx]April 2013'!$C$3:$C$50)),ROW(1:1)),5)),"",INDEX('[Sales 2013-2014 - Kym Edit.xlsx]April 2013'!$B$3:$K$50,SMALL(IF('[Sales 2013-2014 - Kym Edit.xlsx]April 2013'!$C$3:$C$50=$A$8,ROW('[Sales 2013-2014 - Kym Edit.xlsx]April 2013'!$C$3:$C$50)),ROW(1:1)),5))

i hope this helps
 
Upvote 0
It does help actually, with one slight drawback, it is returning the vales from two lines down! Any idea why this could be so? It works great other than that!
 
Upvote 0
Great but you should still post your solution incase other people are experieincing the same problem.
 
Upvote 0
Okay!

So the above formula worked fine except for the fact that it returned data two row down.

The fault lay with these references $B$3 & $C$3 which I simply needed to change to $B$1 & $C$1 respectively.

The thing I don't really understand is that the data range begins on $B$3 & $C$3, so to me it's somewhat odd. However, t works, and I'm a happy little bunny!

Thanks for all input.
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,269
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top