+ Reply to Thread
Results 1 to 10 of 10

Automatically add when multiplied by

  1. #1
    Registered User
    Join Date
    12-17-2020
    Location
    Denmark
    MS-Off Ver
    Office 2016
    Posts
    4

    Automatically add when multiplied by

    An attachment has been added to explain the issue more clearly

    ORIGINAL MESSAGE:

    Hi all

    The title might not be fitting, but here is my question.

    Is it possible to add a specific number, when you multiply by a specific number aswell?

    Example:

    Work hours: 4, 8, 12, 16

    Price rate per hour: 500 kr.

    Transport: 2000 kr. per day (1 day = hours)

    If I have a service job of 8 hours and one of 16 hours.

    =sum(8*500)+2000 = 6000 kr.
    =sum(16*500)+4000 = 12000 kr.

    Is it possible to create a formula which automatically adds 2000 kr. when you multiply by 8, as shown in the example above. And also add 4000 kr. when you multiply by 16.

    If there is no formula which fits this request, then maybe there is a macro? I simply can not find an example of this particular case. I hope you can help.

    Thanks in advance
    Søren, Denmark
    Attached Files Attached Files
    Last edited by AliGW; 12-17-2020 at 12:52 PM. Reason: Original text reinstated.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Automatically add when multiplied by

    Sorry for off-topic interjection:

    Although there is no official rule regarding this behaviour, we request that wherever possible both the question AND the answer be provided in substantive detail here within the thread. An attached workbook is an excellent aid for posing a question and offering a solution, but solely doing that with no in thread explanation makes it difficult for researchers to understand or consider the Q & A of this thread without downloading what may be a pointless doc to them, if they can do that at all. Doing that also hides the content from search engines so others may never benefit from this.

    I'm sure you understand.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Automatically add when multiplied by

    I have NO IDEA what you are asking.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Automatically add when multiplied by

    I agree with Ali, that it might be clearer if you explained in your text.
    My best guess is that in B3 copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    This assumes,
    1. We are only talking about service here and not transport
    2. Your "Service Times" in Col A will never be less than 4.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    12-17-2020
    Location
    Denmark
    MS-Off Ver
    Office 2016
    Posts
    4

    Re: Automatically add when multiplied by

    Hi again

    I had written an explanation, but I forgot to attach the workbook. I edited the post to attach the workbook, not realizing I had to rewrite the post before saving changes. When I saved the only thing left of the post was the file. Is there a way to delete this thread, or does an administrator need to get notified? I will post a new thread, once this has been deleted.

    Sorry for any inconvenience.
    Søren, Denmark

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Automatically add when multiplied by

    There's absolutely no need to start a new thread!

    Just tell us what you are trying to do.

    EDIT: I've just reinstated the text of your opening post.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,000

    Re: Automatically add when multiplied by

    What are your expected answers for 2 hr and for 5 hr?

    Does this work for both scenarios?

    =A3*$E$3+ROUNDUP(A3/8,0)*$E$4
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  8. #8
    Registered User
    Join Date
    12-17-2020
    Location
    Denmark
    MS-Off Ver
    Office 2016
    Posts
    4

    Re: Automatically add when multiplied by

    Quote Originally Posted by ChemistB View Post
    I agree with Ali, that it might be clearer if you explained in your text.
    My best guess is that in B3 copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    This assumes,
    1. We are only talking about service here and not transport
    2. Your "Service Times" in Col A will never be less than 4.
    Thanks for your answer. I can not seem to make this work. I am still a beginner but eager to learn more. What does VLOOKUP do?

    Quote Originally Posted by AliGW View Post
    There's absolutely no need to start a new thread!

    Just tell us what you are trying to do.

    EDIT: I've just reinstated the text of your opening post.
    Thanks a lot AliGW. Again, I am sorry for the rough start on this thread. It was not intentional.


    Quote Originally Posted by Glenn Kennedy View Post
    What are your expected answers for 2 hr and for 5 hr?

    Does this work for both scenarios?

    =A3*$E$3+ROUNDUP(A3/8,0)*$E$4
    Thank you Glenn. That works perfectly :D

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,000

    Re: Automatically add when multiplied by

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It would also be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

  10. #10
    Registered User
    Join Date
    12-17-2020
    Location
    Denmark
    MS-Off Ver
    Office 2016
    Posts
    4

    Re: Automatically add when multiplied by

    Of course. Done and done.

+ 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] LastRow multiplied by 2
    By amartin575 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-24-2020, 10:17 PM
  2. Need a number to be multiplied by another several times
    By ryankelley318 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-05-2018, 12:53 AM
  3. images multiplied automatically (how to stop it)
    By Bangobela in forum Excel General
    Replies: 0
    Last Post: 07-21-2016, 10:49 AM
  4. [SOLVED] Have a cell automatically multiplied by a value and be able to dynamically specify cell
    By zfeld75 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-21-2015, 04:38 PM
  5. [SOLVED] Sum of one row multiplied by another row
    By Maxie_b in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-27-2012, 09:06 AM
  6. Multiplied by 10?
    By Cskellon in forum Excel General
    Replies: 11
    Last Post: 05-23-2012, 07:39 PM
  7. [SOLVED] same cell multiplied by set value
    By lynk787 in forum Excel General
    Replies: 1
    Last Post: 01-23-2005, 03:06 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