+ Reply to Thread
Results 1 to 4 of 4

calculating a percentage based on a yes/no column

  1. #1
    Registered User
    Join Date
    03-07-2014
    Location
    Hilo, HI
    MS-Off Ver
    Excel 2007
    Posts
    2

    calculating a percentage based on a yes/no column

    I have a spreadsheet that contains columns that if the person is cost-share, they have to pay 20% of the final cost: so I wanted to see if there was a formula that I could use that would calculate that. I will attach a blank example spreadsheet.

    If it is Yes in cost share...i want it to calculate 20% of the cost...and if it is no..I want it to be blank or 0...is this possible? Please Help

    Thank you!

    example worksheet.xls

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: calculating a percentage based on a yes/no column

    Which column do you want the formula in?

    I think this does what you want:

    Entered in B2:

    =IF(A2="Yes",E2*0.2,"")

    Format in your desired style.

    Copy down as needed.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    03-07-2014
    Location
    Hilo, HI
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: calculating a percentage based on a yes/no column

    example worksheet.xls

    Thank you!

    It worked... I just changed the formula to fit the columns that I needed!
    If i used the example spreadsheet it worked.. I also was able to use it on the worksheet I needed it for by just changing the cells

    =IF(A2="Yes",E2*0.2,"")

    and it did it for me... I had a lot of columns Thank you!!!
    Last edited by hceoc_energy; 03-07-2014 at 08:32 PM. Reason: Wanted to include data

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: calculating a percentage based on a yes/no column

    You're welcome. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Calculating percentage based on new data
    By Ken_NJ in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-22-2013, 02:38 PM
  2. Calculating Percentage based on Dynamic Cells
    By dimitrz in forum Excel General
    Replies: 4
    Last Post: 12-16-2008, 12:36 AM
  3. Calculating Percentage of Data in Column
    By jlearned in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-20-2007, 07:40 PM
  4. [SOLVED] calculating 10 percentage of items in a column
    By ysymon in forum Excel General
    Replies: 2
    Last Post: 08-24-2005, 12:05 PM
  5. Calculating percentage throughout a column
    By Memphis Slim in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-25-2005, 05:06 PM

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