+ Reply to Thread
Results 1 to 3 of 3

calculate specific percentage based on a value in cell, when cell is selected

  1. #1
    Registered User
    Join Date
    05-31-2019
    Location
    pakistan
    MS-Off Ver
    2016
    Posts
    1

    calculate specific percentage based on a value in cell, when cell is selected

    100% 80% 60%

    20
    05
    15


    please help in my objective. when i select the cell below 100% and in front of 20, it calculates pecentage of 20 out of 100,
    same if i select cell below 80 and in front of 15 , so it calculates the respective percentage.

    i hope i explained well, i just want to calculate value just be selecting the respective cell,


    thanks

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: calculate specific percentage based on a value in cell, when cell is selected

    it sounds like you'll need VBA for that. This should be the formula you'd need =$A2*B$1 dragged down and to the right but it will be active as soon as it is populated in the cells.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: calculate specific percentage based on a value in cell, when cell is selected

    Hi

    You can do that only with VBA

    See the code under SelectionChange event on WorkSheet Folha1 and a help cell H1

    Please Login or Register  to view this content.
    In B3 use the followinf formula and drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    See the file
    Attached Files Attached Files

+ 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. IF or SUM IF to calculate percentage of a cell based on a cell trigger
    By BiancaAngel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-04-2019, 11:19 PM
  2. Replies: 17
    Last Post: 08-14-2018, 05:10 AM
  3. [SOLVED] Formula To Calculate Total Excluding Specific Text Based In Another Cell
    By rahul_ferns76 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-15-2017, 10:12 PM
  4. [SOLVED] Calculate based on value selected in one cell
    By abdulji in forum Excel General
    Replies: 5
    Last Post: 11-30-2015, 08:36 PM
  5. Calculate average percentage for specific selected cells
    By me1992 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-04-2013, 03:54 PM
  6. Replies: 2
    Last Post: 04-04-2013, 12:44 AM

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