+ Reply to Thread
Results 1 to 9 of 9

SUMPRODUCT and LEFT.

  1. #1
    Registered User
    Join Date
    05-03-2009
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    17

    SUMPRODUCT and LEFT.

    Hello everyone.
    Trying to get some statistics out of my golf!

    My problem is i have in the cells 412,402,512 and so on, every number is a seperate stat.

    I use this to count the first number.
    =SUMPRODUCT(--(LEFT('Courses input'!B4:D4,1)="5"))/E4

    It works fine. In the above range i would get 1 like i want.
    But it is not very dynamic. I want the "5" to be a cell and i would also like to use a formula like D4+1 in that position.

    I hope some of you excel masters can help me.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,040

    Re: SUMPRODUCT and LEFT.

    you can put: =SUMPRODUCT(--(1*LEFT(B4:D4,1)=A5))/E4

    where a5 is dynamic cell
    Never use Merged Cells in Excel

  3. #3
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,899

    Re: SUMPRODUCT and LEFT.

    Try this

    F4=5

    =SUMPRODUCT(--(LEFT('Courses input'!B4:D4,1)=text(F4,"0")))/E4

  4. #4
    Registered User
    Join Date
    05-03-2009
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: SUMPRODUCT and LEFT.

    could not get windknife suggestion to work but zbor worked like a charm.
    thank you very much

  5. #5
    Registered User
    Join Date
    05-03-2009
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: SUMPRODUCT and LEFT.

    got another one!
    in the string you gave me zbor can i put another condition?

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,040

    Re: SUMPRODUCT and LEFT.

    like what?

    I would also put condition at begening IF(E5=0;"";Sumproduct....) so you avoid dividing by 0

    Edit: off topic.. woo hoo 500 posts :D

  7. #7
    Registered User
    Join Date
    05-03-2009
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: SUMPRODUCT and LEFT.

    sorted out my last question and you answered my next question without me asking it. again thank you very much!

  8. #8
    Registered User
    Join Date
    05-03-2009
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: SUMPRODUCT and LEFT.

    could not get it to work.

    My data columns look like this.
    C D
    4: 421
    5: 312 365

    This *** up the calculations in because D4 is empty
    =SUMPRODUCT(--(1*LEFT('Courses input'!C4:D4,1)-C3<=0), --(1*MID('Courses input'!C4:D4,3,1)>=2))/E3

    What can i do to exclude empty cells from calculation.
    Last edited by Andy Pope; 05-03-2009 at 07:27 AM. Reason: Bad language

  9. #9
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: SUMPRODUCT and LEFT.

    Your post does not comply with Rule 6 of our Forum RULES. Common courtesy is the order of the day. Avoid coarse language, provide feedback to suggested solutions, and take the time to thank those who took their time to help you.
    Cheers
    Andy
    www.andypope.info

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1