Pages: 1 2 3 [4] 5   Go Down
Print
Author Topic: Excel Geeks  (Read 17590 times)
Nomoreheroes
The Moral Majority

Offline Offline

Posts: 14608





Ignore
« Reply #45 on: Saturday, June 15, 2013, 07:48:38 »

When you say it changes... There is normally a portion that identifies the direct debit itself and then a part that is the transaction number - are you able to compare a single members monthly payments to see if you can identify the breakdown of this?
Have just checked a sample over the last 3 months. Transactions are either:
SO (Which don't have a long number but are relatively static - Although changes to standing order payments are frequent, which often results in the payer amending the SO name)
FPI (Faster payment incoming - Which have what appears to be a fairly random alphanumeric pattern. I can't detect anything that appears to be constant)
Logged

You're my incurable malady. I miss the pleasure of your company.
Nomoreheroes
The Moral Majority

Offline Offline

Posts: 14608





Ignore
« Reply #46 on: Saturday, June 15, 2013, 07:53:43 »

This is where the DB would manage things a lot better... You'd have a master table of members and, hanging off of a single ID from that you have two related tables - one for the dues and one for the payments... You'd then know exactly how much each member owes, how much they pay (through each SO) and how much is outstanding... 
But in this scenario (either in Excel or Access) I only know that they have paid £212.50 out of a total of £222.50. I wouldn't know which one is £10 short. I'd have to arbitrarily choose which one owed £10.
Logged

You're my incurable malady. I miss the pleasure of your company.
Bewster

Offline Offline

Posts: 4004


We fucking love you Gumbo!




Ignore
« Reply #47 on: Saturday, June 15, 2013, 08:15:19 »

If the alpha bit stays constant month on month then excel will do it for you. If everything changes then it won't. And I don't know enough about DBs to give an opinion, but I always thought you needed a link between the tables which is exactly what you are trying to do in excel.
Logged
@MacPhlea

Offline Offline

Posts: 2321





Ignore
« Reply #48 on: Saturday, June 15, 2013, 08:24:55 »

It's the 'link' that gives the 'relation' in a relational database which, by simple deduction, implies you are better off using a database than a spreadsheet... However, NMH seems tied to excel so we see what we can do.
Logged
@MacPhlea

Offline Offline

Posts: 2321





Ignore
« Reply #49 on: Saturday, June 15, 2013, 08:28:24 »

The other way to do it is to create a master worksheet for each customer with a unique ID then create a second worksheet/data set which links the SO name back to the master data with the amount paid - you could then sum all payments based on the master name without having to change the SO name to match.
Logged
Bewster

Offline Offline

Posts: 4004


We fucking love you Gumbo!




Ignore
« Reply #50 on: Saturday, June 15, 2013, 09:25:01 »

The other way to do it is to create a master worksheet for each customer with a unique ID then create a second worksheet/data set which links the SO name back to the master data with the amount paid - you could then sum all payments based on the master name without having to change the SO name to match.

this is what I was angling at on the previous page
Logged
Nomoreheroes
The Moral Majority

Offline Offline

Posts: 14608





Ignore
« Reply #51 on: Thursday, September 5, 2013, 10:47:42 »

I'm back by popular demand !!!

Can I ask for some more help please?

I now have all 'swimmers' aligned to a 'squad' and there are standard fees for each squad. There are 10 squads.

Problem 1:
I have a list of swimmers in column A. When I select the squad in column B, I want to automatically put the squad cost in column C

e.g.
swimmer1 squad1 £10
swimmer2 squad2 £20
swimmer3 squad3 £30 etc etc

What formula should I use?

Problem 2:
We give a discount for some swimmers. For most swimmers there is a 0% discount. For some there is 10% and others 15% (eg. For siblings). So, in column D I want to put a % discount. Ideally, I would like that discount applied to the number in column C

e.g.
swimmer1 squad1 £10 0%
swimmer2 squad1 £9 10%
swimmer3 squad1 £8.50 15%

How do I do that?

Thanks chaps!
Logged

You're my incurable malady. I miss the pleasure of your company.
Samdy Gray
Dirty sneaky traitor weasel

Offline Offline

Posts: 27137





Ignore
« Reply #52 on: Thursday, September 5, 2013, 11:12:11 »

Solve both in one go. You need to set up a table with the squad rates and then in the cell where you want the cost to be, use a VLOOKUP to find the rate and then multiply it by the discount factor.
Logged
Nomoreheroes
The Moral Majority

Offline Offline

Posts: 14608





Ignore
« Reply #53 on: Thursday, September 5, 2013, 11:39:45 »

Thanks Samdy. Have set up the table but am struggling with the syntax for the VLOOKUP. Can you help a bit more please?

I've got the following to do 'problem 1':

=IF(ISNA(VLOOKUP(B1,'Squad Fees'!A$2:B$147,2,FALSE)),0, VLOOKUP(B1,'Squad Fees'!A$2:B$147,2))
« Last Edit: Thursday, September 5, 2013, 11:45:44 by Nomoreheroes » Logged

You're my incurable malady. I miss the pleasure of your company.
sonicyouth

Offline Offline

Posts: 22352





Ignore
« Reply #54 on: Thursday, September 5, 2013, 12:02:04 »

Does the TEF do your job for you?
Logged
Nomoreheroes
The Moral Majority

Offline Offline

Posts: 14608





Ignore
« Reply #55 on: Thursday, September 5, 2013, 12:33:09 »

Does the TEF do your job for you?
No it doesn't....But I'm hoping it will help me in this voluntary work helping a non profit making organisation that gets kids off the street and helps them take part in sport.
Logged

You're my incurable malady. I miss the pleasure of your company.
sonicyouth

Offline Offline

Posts: 22352





Ignore
« Reply #56 on: Thursday, September 5, 2013, 12:34:50 »

Sounds like a waste of time to me.
Logged
Loobug

Offline Offline

Posts: 212





Ignore
« Reply #57 on: Thursday, September 5, 2013, 12:35:19 »

I you have a sheet with 4 columns (Swimmer, squad, discount & cost) and then set up a lookup table with (Squad 1, squad 2, etc with associate costs in the next column. Then you could use the following calculation. This requires you to manually type in the discount.

=VLOOKUP(B2,Sheet2!A1:B3,2,TRUE)-SUM(VLOOKUP(B2,Sheet2!A1:B3,2,TRUE)*C2)

I can send to you if it helps.
Logged
Simon Pieman
Original Wanker

Offline Offline

Posts: 36318




« Reply #58 on: Thursday, September 5, 2013, 13:43:03 »

Squad fees would be just as easy to sort out with a nested IF function:

=IF(B2="Squad 1",10,IF(B2="Squad 2",20,IF(B2="Squad 3",30)))

If you have a discount column in column D (with a discount % [format the column as percentages for easier input]) then you could modify the above with:

=IF(B2="Squad 1",10*(1-D2),IF(B2="Squad 2",20*(1-D2),IF(B2="Squad 3",30*(1-D2))))


The only problem is if you get over 7 squads as the nested IF will only allow 7 arguments I think.

Would be more robust if you could only select the squad by a drop down menu. If you don't know how to do this then google it as it's quite simple to achieve.
Logged
Simon Pieman
Original Wanker

Offline Offline

Posts: 36318




« Reply #59 on: Thursday, September 5, 2013, 13:47:44 »

Further investigation suggests you can have 64 nested IF arguments in a single string in Excel 2007 and later.
Logged
Pages: 1 2 3 [4] 5   Go Up
Print
Jump to: