+ Reply to Thread
Results 1 to 2 of 2

Help With Calculation With Labels/Textboxes

  1. #1
    Registered User
    Join Date
    10-21-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    94

    Question Help With Calculation With Labels/Textboxes

    Hello

    Im trying to expand on this calculation to get a NET profit margin.

    Please Login or Register  to view this content.
    The above code returns the correct profit after all fees (In above example $5.53)


    The next step now is to divide this result by the selling price for the product which in this case is txtboxOur_ListingPrice.Text and *100 (Whbich is the formula for net profit)

    I came up with this - but its returning the wrong values

    Please Login or Register  to view this content.
    Im expecting to see a result of 54.06%= 5.53/10.23*100=54.06
    5.53=txtboxOur_ListingPrice.Text
    10.23=blSupplier_Total.Caption

    But the label returns -21.41%

    Anything im missing?

    Thanks

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Help With Calculation With Labels/Textboxes

    Could we see it in context with a sample workbook?

    BSB

+ 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] Add Textboxes to UserForm from Inputbox Range Selection and Use Textboxes to Create Table
    By RoroBear in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-28-2021, 10:07 AM
  2. [SOLVED] Dynamic positions for textboxes/labels in userform
    By john55 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-03-2017, 08:52 AM
  3. Linking TextBoxes to labels displayed on Excel/VBA userforms
    By pattersj in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-20-2014, 09:05 AM
  4. Layering Hidden Labels/Images/TextBoxes
    By Shea2288 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-20-2014, 01:20 AM
  5. [SOLVED] Changing the state of Labels and textboxes in userforms
    By bfischer414 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-15-2013, 09:53 AM
  6. Shrinking text on Excel 2007 command buttons, labels and textboxes
    By csipke in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-25-2012, 09:57 PM
  7. Text wrap problem when printing labels/textboxes
    By chipshot in forum Excel General
    Replies: 1
    Last Post: 09-30-2005, 06: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