+ Reply to Thread
Results 1 to 4 of 4

Thread: Need Help With using a Sum, If statement with multiple cells

  1. #1
    Registered User
    Join Date
    10-12-2011
    Location
    Washington
    MS-Off Ver
    Excel 2003
    Posts
    5

    Post Need Help With using a Sum, If statement with multiple cells

    Hi there

    I will try to make this as clear as possible, since it is a little convoluted :-)

    If I enter a solid number into a cell as in 4 or 4.0, then it needs to be multiplied by 4 (4*4), but if the number ends in a .5 as in 1.5, 4.5, etc...Then the first whole number needs to be multiplied by 4 and then add 2.5 to it...

    Example: if it is 4.5, then the 4 would be multiplied by 4, (4*4) and then the .5 would add 2.50 to the 4*4, so the ending result would be (4*4 + 2.50=$18.50)...Clear as mud??

    Thanks so much for any help you can provide!!
    Last edited by LaFonson; 10-13-2011 at 04:33 PM.

  2. #2
    Valued Forum Contributor alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Lake County, Illinois
    MS-Off Ver
    MS Office 2010, 2007 and 2002
    Posts
    1,165

    Re: Need Help With an Excel Formula

    Assume your number is in A1, then the formula would be:

    =IF(A1=INT(A1),A1*4,INT(A1)*4+2.5)

    Alan

  3. #3
    Registered User
    Join Date
    10-12-2011
    Location
    Washington
    MS-Off Ver
    Excel 2003
    Posts
    5

    Need Help With using a Sum, If statement with multiple cells

    Hi out there

    Trying to use a sum, if statement to sum across multiple cells and am getting an error.

    This is what I have:
    =SUM(IF(C9:X9=INT(C9:X9), C9:X9*4,INT(C9:X9)*4+2.5))

    Thanks for any help!!
    Last edited by LaFonson; 10-13-2011 at 02:09 PM. Reason: Changing Title

  4. #4
    Forum Guru, retired Admin royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    25,640

    Re: Need Help With an Excel Formula

    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.

    PLEASE PM WHEN YOU HAVE DONE THIS AND I WILL DELETE THIS POST
    Hope that helps.

    RoyUK
    --------
    If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need

    For Excel Tips & Solutions, free examples and tutorials why not check out my downloads

    New members please read & follow the Forum Rules

    Remember to mark your questions Solved and rate the answer(s)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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