+ Reply to Thread
Results 1 to 4 of 4

Percentage or Not?

  1. #1
    Registered User
    Join Date
    02-06-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2016
    Posts
    50

    Percentage or Not?

    I want to create a user function that differentiates whether an input is an integer or a percentage. Here's an example of what I need it to do:


    First Number Second Number(Integer or Percentage) User Formula
    10 1 11
    10 10% 11
    10 25% 12.5
    6 50% 9

    Basically, if the second number is an integer, just add it to the first number A1+B1. If the second number is a percentage A1+(A1*B1)
    Last edited by Yakov on Excel; 08-24-2016 at 03:28 PM.

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

    Re: User Formula

    [UI]Your post does not comply with Rule 1 of our Forum [/I]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 go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  3. #3
    Registered User
    Join Date
    12-18-2012
    Location
    Bellingham, WA
    MS-Off Ver
    Excel 2013
    Posts
    9

    Re: User Formula

    Yakov,

    Try this in cell C1. It checks the cell format of B1 and then carries out the corresponding function.
    [=IF(LEFT(CELL("format",B1))="P",A1+(A1*B1),A1+B1)]

  4. #4
    Registered User
    Join Date
    02-06-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2016
    Posts
    50

    Re: User Formula

    Have I satisfied the moderator request?
    Last edited by Yakov on Excel; 08-24-2016 at 03:44 PM.

+ 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. [SOLVED] automatically updating formula when user adds a user
    By Muzza86 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-25-2014, 06:23 AM
  2. [SOLVED] Macro to Fill with Formula, but Hide Formula to User
    By Gard5096 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-21-2012, 10:44 AM
  3. [SOLVED] external link reference formula inside formula user input
    By jscc in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-20-2012, 04:29 PM
  4. User Defined Formula with CF
    By keithfender in forum Excel General
    Replies: 2
    Last Post: 07-10-2009, 10:56 AM
  5. New user and need help with a formula
    By bb13 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-29-2007, 11:43 AM
  6. [SOLVED] User Form Formula ?
    By mully in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 07-01-2005, 12:05 PM
  7. help with a formula (New User)
    By detlghtpd in forum Excel General
    Replies: 3
    Last Post: 03-25-2005, 03:06 PM

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.6.0 RC 1