Omega Owners Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Please check the Forum Guidelines at the top of the Newbie section

Pages: 1 [2] 3  All   Go Down

Author Topic: Any MS Excel experts in here?  (Read 2484 times)

0 Members and 1 Guest are viewing this topic.

Andy H

  • Omega Lord
  • *****
  • Offline Offline
  • Gender: Male
  • Auckland
  • Posts: 5509
    • Mazda MPV
    • View Profile
Re: Any MS Excel experts in here?
« Reply #15 on: 25 June 2014, 19:36:30 »

Use Frequency?  Done similar, recall basic freq wizard did the job :-\
There was some issue around doing the dates when I played earlier today, then I got sidetracked onto Pivot Tables, and lost 3 hours of my life without achieving anything useful.
Been there. :( 2 years of hourly readings from the heat meters in a block of 90 flats.

I did manage to get some answers but it wasn't pretty.

I considered saving all the data in a csv file and writing something to suck it all into a mysql or sqlite database but never got around to it.
Logged
"Deja Moo - The feeling that you've heard this bull somewhere before."

Gaffers

  • Omega Queen
  • *****
  • Offline Offline
  • Gender: Male
  • NE Hampshire/Surrey
  • Posts: 11322
    • Ford Ranger Wildtrak
    • View Profile
Re: Any MS Excel experts in here?
« Reply #16 on: 25 June 2014, 19:37:43 »

You need to use the COUNTIF function :y

http://office.microsoft.com/en-001/excel-help/count-how-often-a-value-occurs-HP001127779.aspx

Edit:  you can nest the COUNTIFs with IF statements as required

I Must type faster!

 ;D

I may or may not have spent a whole year in my yoof doing nothing but excel and VBA  ::)  (which is the most convoluted way to go about this problem)
Logged

cem_devecioglu

  • Guest
Re: Any MS Excel experts in here?
« Reply #17 on: 25 June 2014, 19:39:16 »

on complex scenarios using excel built in functions will get more complicated :-\
Logged

Gaffers

  • Omega Queen
  • *****
  • Offline Offline
  • Gender: Male
  • NE Hampshire/Surrey
  • Posts: 11322
    • Ford Ranger Wildtrak
    • View Profile
Re: Any MS Excel experts in here?
« Reply #18 on: 25 June 2014, 20:06:59 »

on complex scenarios using excel built in functions will get more complicated :-\

True, but this is not complicated for Excel.  In fact it is exactly what is was designed for?
Logged

jimbobmccoy

  • Intermediate Member
  • ***
  • Offline Offline
  • Gender: Male
  • outer london
  • Posts: 311
    • View Profile
Re: Any MS Excel experts in here?
« Reply #19 on: 25 June 2014, 20:18:30 »

You need to use the COUNTIF function :y

http://office.microsoft.com/en-001/excel-help/count-how-often-a-value-occurs-HP001127779.aspx

Edit:  you can nest the COUNTIFs with IF statements as required

I Must type faster!

 ;D

I may or may not have spent a whole year in my yoof doing nothing but excel and VBA  ::)  (which is the most convoluted way to go about this problem)

I'm currently being tormented by reports for work that are a combo of excel, VBA and tying it together with macro scheduler to achieve some level of automation. Convoluted isn't the half of it!
I try to convince myself it's all good for my 'personal development' but when 64bit excel just decides to stop liking existing VB, it's testing. (Apparently a known issue and why Microsoft recommend using the 32 bit version unless absolutely necessary ???)
Logged

Gaffers

  • Omega Queen
  • *****
  • Offline Offline
  • Gender: Male
  • NE Hampshire/Surrey
  • Posts: 11322
    • Ford Ranger Wildtrak
    • View Profile
Re: Any MS Excel experts in here?
« Reply #20 on: 25 June 2014, 20:33:20 »

Ok, because I am a nice chap, here we go :y

Number of times name appears - =COUNTIF(C2:C16, "matt")  where C2:C16 is the range of cells and "matt" is the name
Number of times name appears with Action=Yes - =SUMPRODUCT(--(C2:C16="matt"),--(D2:D16="yes"))
Number of time name appears in last 30 days - =SUMPRODUCT(--(C2:C16="matt"),--(E2:E16<(TODAY()-30)))
Number of time name appears in last 30 days with Action=Yes =SUMPRODUCT(--(C2:C16="matt"),--(D2:D16="yes"),--(E2:E16<(TODAY()-30)))

Logged

Gaffers

  • Omega Queen
  • *****
  • Offline Offline
  • Gender: Male
  • NE Hampshire/Surrey
  • Posts: 11322
    • Ford Ranger Wildtrak
    • View Profile
Re: Any MS Excel experts in here?
« Reply #21 on: 25 June 2014, 20:33:48 »

Now give me a real challenge ::)
Logged

cem_devecioglu

  • Guest
Re: Any MS Excel experts in here?
« Reply #22 on: 25 June 2014, 21:09:47 »

on complex scenarios using excel built in functions will get more complicated :-\

True, but this is not complicated for Excel.  In fact it is exactly what is was designed for?


as the murphy rules says it will always get complicated as time goes by ;D
Logged

cem_devecioglu

  • Guest
Re: Any MS Excel experts in here?
« Reply #23 on: 25 June 2014, 21:10:39 »

Now give me a real challenge ::)


believe me I can :) :y
Logged

TheBoy

  • Administrator
  • *****
  • Offline Offline
  • Gender: Male
  • Brackley, Northants
  • Posts: 105950
  • I Like Lockdown
    • Whatever Starts
    • View Profile
Re: Any MS Excel experts in here?
« Reply #24 on: 26 June 2014, 17:24:55 »

Importing into a DB is a no-go I'm afraid. That was the way I wanted to go.

Can you not stick sqlexpress on your own machine, create a one table DB and do it locally on that?

Will anyone mind as long as the output is right?

Also, from experience, management tend to want this type of report to grow-get more complex, analyse the same thing more times, and still not get what it's telling them. As this happens having the info in a proper DB would be a huge help
It has to be self contained and independent of anything else. You're preaching to the converted about databases, but that's not an option.

To really add insult, the data has to be updatable via Excel Webapp, as found on whatever Skydrive is called this week, and ShitPoint.

Grrrr
Logged
Grumpy old man

TheBoy

  • Administrator
  • *****
  • Offline Offline
  • Gender: Male
  • Brackley, Northants
  • Posts: 105950
  • I Like Lockdown
    • Whatever Starts
    • View Profile
Re: Any MS Excel experts in here?
« Reply #25 on: 26 June 2014, 17:27:56 »

Ok, because I am a nice chap, here we go :y

Number of times name appears - =COUNTIF(C2:C16, "matt")  where C2:C16 is the range of cells and "matt" is the name
Number of times name appears with Action=Yes - =SUMPRODUCT(--(C2:C16="matt"),--(D2:D16="yes"))
Number of time name appears in last 30 days - =SUMPRODUCT(--(C2:C16="matt"),--(E2:E16<(TODAY()-30)))
Number of time name appears in last 30 days with Action=Yes =SUMPRODUCT(--(C2:C16="matt"),--(D2:D16="yes"),--(E2:E16<(TODAY()-30)))
I'm failing at a hurdle before - I have a list of names, but this list will change over time, as will the number of names in the list.
Logged
Grumpy old man

TheBoy

  • Administrator
  • *****
  • Offline Offline
  • Gender: Male
  • Brackley, Northants
  • Posts: 105950
  • I Like Lockdown
    • Whatever Starts
    • View Profile
Re: Any MS Excel experts in here?
« Reply #26 on: 26 June 2014, 17:30:33 »

Instead of ="matt", can I have =NameList!A2 instead, would that resolve it? (assume name was stored in NameList!A2) ?

Then with an IF to ensure that NameList!A2 is valid
Logged
Grumpy old man

Gaffers

  • Omega Queen
  • *****
  • Offline Offline
  • Gender: Male
  • NE Hampshire/Surrey
  • Posts: 11322
    • Ford Ranger Wildtrak
    • View Profile
Re: Any MS Excel experts in here?
« Reply #27 on: 26 June 2014, 18:00:40 »

You can reference a single cell easily, but if you wanted to do a number of names in to one result you would need to add OR statements before the first comma by "matt".  Something like:

=SUMPRODUCT(OR(--(C2:C16="matt"), --(C2:C16="Jimbob")),--(D2:D16="yes"))

For a list of results for different names you would need to do a separate formula for each name you waned to count.  SOmething like this:
=SUMPRODUCT(--(C2:C16="matt"),--(D2:D16="yes"))
=SUMPRODUCT(--(C2:C16="Jimbob"),--(D2:D16="yes"))
Logged

TheBoy

  • Administrator
  • *****
  • Offline Offline
  • Gender: Male
  • Brackley, Northants
  • Posts: 105950
  • I Like Lockdown
    • Whatever Starts
    • View Profile
Re: Any MS Excel experts in here?
« Reply #28 on: 26 June 2014, 18:23:41 »

I think that gives me a starter to work from :y
Logged
Grumpy old man

Gaffers

  • Omega Queen
  • *****
  • Offline Offline
  • Gender: Male
  • NE Hampshire/Surrey
  • Posts: 11322
    • Ford Ranger Wildtrak
    • View Profile
Re: Any MS Excel experts in here?
« Reply #29 on: 26 June 2014, 18:44:00 »

No probs, the hard part is getting the commas and brackets lined up properly ::)

One tip is to fabric some test data to which you already know the outcome and test your formulas on that :y
Logged
Pages: 1 [2] 3  All   Go Up
 

Page created in 0.042 seconds with 22 queries.