+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 25
  1. #1
    Registered User
    Join Date
    07-03-2009
    Location
    Kent, England
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    35

    Summing with Variables

    Morning all

    I am having real trouble with a formula.

    I have used a similar formula for to calculate a column.

    Can any one see where I am going wrong. It is the cell highlighted in yellow on the attached spreadsheet.

    Thanks in advance.

    Bud
    Attached Files Attached Files
    Last edited by NBVC; 02-22-2010 at 12:22 PM.

  2. #2
    Forum Guru Domski's Avatar
    Join Date
    12-14-2009
    Location
    Leeds, UK
    MS-Off Ver
    2003 (work), 2007 & 2010 (home)
    Posts
    3,516

    Re: Help!!

    You haven't attached anything. Also you will probably get a telling off from a mod about your thread title.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    If you haven't already please take some time to read the Forum Rules.

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,042

    Re: Help!!

    Domski's right!

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    teylyn
    Microsoft MVP - Excel
    At Excelforum, you can say "Thank you!" by clicking the icon below the post.

    Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.

  4. #4
    Forum Guru Domski's Avatar
    Join Date
    12-14-2009
    Location
    Leeds, UK
    MS-Off Ver
    2003 (work), 2007 & 2010 (home)
    Posts
    3,516

    Re: Help!!

    There doesn't appear to be a formula in the highlighted cell now.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    If you haven't already please take some time to read the Forum Rules.

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  5. #5
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,042

    Re: Help!!

    Dom .....! I'll put that down as simultaneous posting before seeing the mod request.
    teylyn
    Microsoft MVP - Excel
    At Excelforum, you can say "Thank you!" by clicking the icon below the post.

    Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.

  6. #6
    Registered User
    Join Date
    07-03-2009
    Location
    Kent, England
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    35

    Re: Help with formula.

    Sorry all my bad. I got caught up in the heat of the moment. I have re-uploaded the file with the formula and edited the title.

    Sorry again

  7. #7
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,042

    Re: Help with formula.

    I have re-uploaded the file with the formula and edited the title.
    Could you check that again, please?
    teylyn
    Microsoft MVP - Excel
    At Excelforum, you can say "Thank you!" by clicking the icon below the post.

    Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.

  8. #8
    Forum Guru Domski's Avatar
    Join Date
    12-14-2009
    Location
    Leeds, UK
    MS-Off Ver
    2003 (work), 2007 & 2010 (home)
    Posts
    3,516

    Re: Help with formula.

    Maybe:

    =SUMPRODUCT(COUNTIF($B$1:$AG$1,{"HH","HS","HO"})*0.5)+SUM($B$1:$AG$1)

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    If you haven't already please take some time to read the Forum Rules.

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  9. #9
    Registered User
    Join Date
    07-03-2009
    Location
    Kent, England
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    35

    Re: Help with formula.

    Spreadsheet with formula in yellow highlighted cell

    3rd time lucky

    Attached Files Attached Files

  10. #10
    Forum Moderator NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003, 2007, 2010
    Posts
    31,129

    Re: Help with formula.

    I think Teylyn means.. check the title... please read Rule 1 of the Forum Rules.. the title should be a brief description of the problem.. not help, not formula....
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  11. #11
    Registered User
    Join Date
    07-03-2009
    Location
    Kent, England
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    35

    Re: Help with formula. '=SUMPRODUCT'

    Hi Dom

    Thanks for the reply

    Tried that and still getting N/A.

    Hopefully I have correct the title for the thread now

  12. #12
    Forum Guru Domski's Avatar
    Join Date
    12-14-2009
    Location
    Leeds, UK
    MS-Off Ver
    2003 (work), 2007 & 2010 (home)
    Posts
    3,516

    Re: Help with formula. '=SUMPRODUCT'

    I get 28 rather than #N/A.

    Dom
    Attached Files Attached Files
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    If you haven't already please take some time to read the Forum Rules.

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  13. #13
    Registered User
    Join Date
    07-03-2009
    Location
    Kent, England
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    35

    Re: Summing with Variables

    Copy and pasted it and now works. I must have made a typo.

    Thanks Dom you the man

  14. #14
    Registered User
    Join Date
    07-03-2009
    Location
    Kent, England
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    35

    Re: Summing with Variables

    Hi again all

    I have tried to use a simular formula again but I it is not working again.

    I have attached screen shot of the sheet, error and formula

    Can amyone see where I am going wrong?

    Cheers people.
    Attached Images Attached Images

  15. #15
    Forum Guru Domski's Avatar
    Join Date
    12-14-2009
    Location
    Leeds, UK
    MS-Off Ver
    2003 (work), 2007 & 2010 (home)
    Posts
    3,516

    Re: Summing with Variables

    You can't specify multiple or non-contiguous ranges in a COUNTIF formula.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    If you haven't already please take some time to read the Forum Rules.

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

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.2.0