+ Reply to Thread
Results 1 to 5 of 5

Calculate Yes / No Variables?

  1. #1
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Question Calculate Yes / No Variables?

    Hi Excel Users,

    I create a spreadsheet that displays 3 desinations. 2 of the destinations are fixed locations or has a fixed distance. The third desination can vary.

    I'm trying to determine the total mileage if I go to Point A, B or C. I have a list of dates & by inserting a Y for Yes or N for No if destination was made.

    I'm trying to figure a formula that can calculate the variable by using a bunch of "IF" formulas. I managed to get partially working, but I think my formula is negating one of my possible outcomes & thus, giving me a FALSE or incorrect answer.

    I attached the spreadsheet for example.

    Thanks for the assistance.
    Attached Files Attached Files
    Last edited by mycon73; 03-26-2010 at 03:10 AM. Reason: Title Change
    MyCon
    -- Using Latest Version of Excel

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

    Re: Yes / No / If?

    Please rename your title according to the rules:

    1. 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 the title of the thread, click EDIT on the original post, then click the Go Advanced button, then change the title. If two or more hours have passed, the EDIT button will not appear, and you need to ask a moderator to change the title.

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Calculate Yes / No Variables?

    Is this your formula for Total miles ? G13 and down:

    =E13+IF(C13="Y",$B$9,0)+IF(D13="Y",$B$10,0)

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Calculate Yes / No Variables?

    In H13 you can write this: =MAX(0,G13*$D$7)

  5. #5
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Re: Calculate Yes / No Variables?

    Hi zbor,

    Wow! Your formula is so much simplier. I was obviously making my formula a bit too complex.

    Thanks for the assistance.

+ 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