Excel question

Anything goes in here.....
Post Reply
pete
Vexatious Litigant
Posts: 4707
Joined: Tue Mar 15, 2005 3:23 pm
Location: Kilmarnock

Excel question

Post by pete » Wed Mar 11, 2015 9:29 pm

Anyone able to answer an excel question (I suspect they are straightforward ones but i might be wrong).

I am trying to add up some values in our roster. The roster shows all our shifts and they are all of different lengths I want the excel sheet to add up all that persons' shifts for the month.
So it would assign 7 hours for a M, 8 for a "A", 9 for a "N" etc.

Help?
'99 - '03 Titanium S1 111S.
'03 - '10 Starlight Black S2 111S
'11 - '17 S2 135R
'17 - '19 S2 Exige S+
'23 - ?? Evora

User avatar
BiggestNizzy
Posts: 8932
Joined: Sun May 27, 2007 6:47 pm
Location: Kilmarnock
Contact:

Re: Excel question

Post by BiggestNizzy » Wed Mar 11, 2015 9:46 pm

Can you post some sample data?
Sent from my ZX SPECTRUM +2A

pete
Vexatious Litigant
Posts: 4707
Joined: Tue Mar 15, 2005 3:23 pm
Location: Kilmarnock

Re: Excel question

Post by pete » Wed Mar 11, 2015 9:58 pm

Pm'd you a link
'99 - '03 Titanium S1 111S.
'03 - '10 Starlight Black S2 111S
'11 - '17 S2 135R
'17 - '19 S2 Exige S+
'23 - ?? Evora

User avatar
campbell
Posts: 17346
Joined: Sat Mar 25, 2006 12:42 pm
Location: West Lothian
Contact:

Re: Excel question

Post by campbell » Wed Mar 11, 2015 10:29 pm

Interested to have a try too, if Nizzy bombs out. Which he won't :-)
http://www.rathmhor.com | Coaching, training, consultancy

User avatar
greido
Posts: 193
Joined: Sat Dec 17, 2011 6:37 pm
Location: Edinburgh

Re: Excel question

Post by greido » Wed Mar 11, 2015 10:32 pm

I would use a vlookup, this link explains it pretty well: http://www.contextures.com/xlFunctions02.html
Current Rides: Evora & BMW X5 (F15)
Gone: Elise S3, 350zGT, Boxster S, BMW X5 (E70)

pete
Vexatious Litigant
Posts: 4707
Joined: Tue Mar 15, 2005 3:23 pm
Location: Kilmarnock

Re: Excel question

Post by pete » Wed Mar 11, 2015 10:49 pm

I unleashed Mrs Pete on it too...

Campbell you have email about a visit?
'99 - '03 Titanium S1 111S.
'03 - '10 Starlight Black S2 111S
'11 - '17 S2 135R
'17 - '19 S2 Exige S+
'23 - ?? Evora

User avatar
BiggestNizzy
Posts: 8932
Joined: Sun May 27, 2007 6:47 pm
Location: Kilmarnock
Contact:

Re: Excel question

Post by BiggestNizzy » Wed Mar 11, 2015 11:17 pm

Campbell thanks for the vote of confidence but I am a little rusty, that and I have a lackey (trainee) for this sort of thing now

I tried creating a 3rd page with this folmula in each cell

=VLOOKUP(Sheet1!E6,Sheet2!$A$1:$B$9,2,TRUE) but it brings in the wrong value

=vlookup(It looks to the initial page for the code letter,checks the array on sheet 2, replaces the code letter with the corresponding time column 2, find an exact value)

I will tie in with the lackey tomorrow he might even write a macro for it
Sent from my ZX SPECTRUM +2A

User avatar
campbell
Posts: 17346
Joined: Sat Mar 25, 2006 12:42 pm
Location: West Lothian
Contact:

Re: Excel question

Post by campbell » Wed Mar 11, 2015 11:23 pm

Apols Pete, only just back from LCY and behind on email :-(

DECODE function may help.

Or send it over, Pete :-)
http://www.rathmhor.com | Coaching, training, consultancy

woody
Posts: 5637
Joined: Mon Dec 26, 2005 4:03 pm
Location: Southside Triangle

Re: Excel question

Post by woody » Thu Mar 12, 2015 2:41 am

Can't you use IF AND? Setting the and value to 0> to be counted? Would need to see it to think it out (& be at work with work laptop, sadly I'm not for a week).

User avatar
Dominic
Posts: 14452
Joined: Sat Mar 19, 2005 10:14 am
Location: Milton Of Campsie
Contact:

Re: Excel question

Post by Dominic » Thu Mar 12, 2015 10:43 am

woody wrote:Can't you use IF AND? Setting the and value to 0> to be counted? Would need to see it to think it out (& be at work with work laptop, sadly I'm not for a week).
I would think IF statement within IF statement would do the trick.
http://www.dsaccountancy.com

1999 Lotus Elise Sport 135'99

User avatar
graeme
Posts: 3528
Joined: Tue Mar 15, 2005 11:29 am
Location: Kintore

Re: Excel question

Post by graeme » Thu Mar 12, 2015 11:46 am

PM'd you a link to a sheet to try.

I find (with any programming problem), rather than find the 1 uber function that does it all, break the problem down into steps. It's easier to read, maintain etc.

I added a cell to count the 'M's, another to count the 'A's etc. Then look up the M value (7) and multiply that by the M count. Then added a total column for all the shifts added together. You might not want it laid out by month like I did, but you'll get the idea of adding intermediate steps. Hope that helps.
211
958

User avatar
Sanjøy
Posts: 8828
Joined: Sun Oct 02, 2005 8:23 pm
Location: Edinburgh Hamptons

Re: Excel question

Post by Sanjøy » Fri Mar 20, 2015 3:32 pm

Afternoon looking for some help. I am having a moment. I have two columns, one with text colour of sauce and one with the volume of sauce. I want to output the number of each volume of sauce by colour. That makes terrible Engerlish I know.

Source matrix:

Volume Sauce
3 Brown
2 Red
4 Red
3 Red
1 Brown
5 Brown

Desired output:

Red Brown
1s 0 1
2s 1 0
3s 1 1
4s 1 0
5s 0 1


tia

S
W213 All Terrain

User avatar
neil
Posts: 3259
Joined: Fri Apr 06, 2007 1:55 pm
Location: Aberdeen

Re: Excel question

Post by neil » Fri Mar 20, 2015 3:48 pm

Countifs() will do it for you:

Image
Exige V6

Post Reply