Thanks again for replying, JMB.
You've gone to a lot of trouble for me and I appreciate it.
Actually there are never any more than ten supplier invoices in a month.
Which will probably make you ask why I just dont cop[y everything and paste
to the individual accounts. It's just that I'm kinda getting addicted to this
Excel. I started off with a blank sheet. Hadn't a clue what Excel was about.
And now I have 'my accounts' looking really professional on screen. I did all
this through trial and error. I put formulae into the payroll and it means I
have only to make one entry and everything is calculated down to the
employees' take-home pay and the taxes due to the Government. I hasten to add
that most of these formulae were supplied by people, like your good self, in
this group. There is no way I would ever have been able to do the payroll
otherwise. Anyone that has seen it on the screen thinks I have purchased a
commercial package. I'm trying to emulate this now with the accounts and, as
I said above, there aren't that many invoices involved and I'm enjoying
trying to do it. I know people who have bought the accounting software and
spend most of their time on the phone looking for support from the
manfacturers of the software because they don't know what to do ewhen
something doesn't happen the way they want it to. If I ask them about the
software they tell me that they don't have a clue what happens when they use
the package. Me? I like to know exactly what's happening. Two of my friends
bought accounting software and they still had to retain the services of the
book keeper to operate the software programme on the Pc. Now the book keepers
are spending more time filing their nails than filing accounts but they have
to retained because my friend don't know what they are doing when they input
into the software themselves. Sorry for waffling on. Anyway, the auto filter
looks like it's worth a try.
What d'ya reckon? For a small amount of invoices the computer should be ok.
By the way, I have to say that I feel awful when I'm asking questions of the
group because I have nothing to contribute. I can't answer the questions at
all. I really admire you guys, though, for the trouble you all go to, to help
others.
It's really appreciated,
Gatsby (Not the Great)
JMB said:
There are ways to pull those values out w/formulae, but those formulae would
have to reside in the suppliers account tab and you won't know beforehand how
many rows of formulae you need. And if you have a lot of data, the formulas
could bog or crash the computer. Accounting software would probably be my
first choice. I've really never worked much w/databases, but I would
probably check it out to see if it is a better solution (particularly if
there is a moderate to large amount of data)
Assuming your data is in A1:B100, and this is entered in F1 (confirmed with
Cntrl+Shift+Enter)
=INDEX(B$1:B$100,SMALL(IF(A$1:A$100="Cinergi",ROW(A$1:A$100)-ROW(A$1)+1),ROWS(F$1:F1)))
and copied down until you get an error, but I am skeptical it will work well
as I expect you have a moderate amount of data (calculation load will likely
cripple the machine).
You could also try this:
G1 =MATCH("Cinergi",A:A,0)
H1 =INDEX(B:B,G1)
G2 =MATCH("Cinergi",INDEX(A:A,G1+1):A$65536,0)+G1
H2 =INDEX(B:B,G2)
and copy G2:H2 down until you get an error. Pulling out 27K entries from a
data set of 57K took about 4.5 minutes to calculate - not great but it didn't
crash.
Or, you could use Autofilter (Data/Filter/Autofilter) to filter for Cinergi
and copy/paste the results to the suppliers account - which could probably be
semi-automated.
These suggestions are rather simplistic, I'm sure there are better/faster
methods. Perhaps someone else has designed a project similar to what you are
doing and has better suggestions to offer.