+ Reply to Thread
Results 1 to 7 of 7

Calculating percentage in a cell and omitting values when specific words are present.

  1. #1
    Registered User
    Join Date
    04-05-2014
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    2

    Calculating percentage in a cell and omitting values when specific words are present.

    Hi everyone,

    First post for me after searching for something similar to what I'm trying to do but I think I'm just wasting my time without actually asking specifically.

    I have a daily report that gives a percentage based on what is typed into the "Supplier" and "Total Sales" columns but I'm having trouble writing the following formulas since my excel knowledge is relatively low.

    1. Where a cell in the "Supplier" column says anything but "Den", "Burrowed" or "Studio Nyx" I need the "60%" and "40%" columns filled with the relevant formula (=B11*60% for example) and the "100%" column blank.

    2. Additionally, if the cell contains "Den", "Burrowed" or "Studio Nyx" I need the "100%" column filled and the "60%" and "40%" blank.

    Sorry for all the quotation marks! If you could provide me with some kind of solution I'd be very grateful!

    Johno
    Attached Files Attached Files
    Last edited by JohnOOH; 04-05-2014 at 06:13 PM. Reason: Edit was requested by moderator

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,864

    Re: Basically wandering around in the dark.

    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.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    03-30-2014
    Location
    Pittsburgh,PA
    MS-Off Ver
    Office 2010, Home Student 2013
    Posts
    62

    Re: Basically wandering around in the dark.

    If the supplier is blank, the 60%, 40%, and 100% columns are blank.

    D11 and copied down:
    =IF(OR(A11="DEN",A11="Burrowed",A11="Studio Nyx",ISBLANK(A11)),"",$D$10*B11)

    E11 and copied down:
    =IF(ISNUMBER(D11),$E$10*B11,"")

    F11 and copied down:
    =IF(OR(ISNUMBER(E11),ISBLANK(A11)),"",B11)

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Basically wandering around in the dark.

    @JohnOOH

    Even though you have received a response (timed almost co-incidentally with the change title request), please go back and change the title for the benefit of others who might search this forum in the future.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,366

    Re: Basically wandering around in the dark.

    Perhaps like this?

  6. #6
    Registered User
    Join Date
    04-05-2014
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    2

    Re: Calculating percentage in a cell and omitting values when specific words are present.

    Thanks everyone for setting me straight and specifically to thisoldman for the solution to my problem. Next time I'll just head straight to this forum!

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Calculating percentage in a cell and omitting values when specific words are present.

    Glad you've enjoyed the experience and thanks for the change of title.

+ 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. Wandering button
    By ChinaTom in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-31-2013, 11:20 AM
  2. Are these two code snippits basically the same?
    By RossKennedy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-01-2011, 09:22 PM
  3. basically want to go from mm/dd/yyyy to yyyymmdd
    By clegge in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-10-2006, 12:45 PM
  4. [SOLVED] Wandering Mouse
    By Allan in forum Excel General
    Replies: 4
    Last Post: 11-03-2005, 06:15 AM
  5. [SOLVED] Prevent wandering users
    By cindee in forum Excel General
    Replies: 2
    Last Post: 10-05-2005, 04:05 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