+ Reply to Thread
Results 1 to 4 of 4

Invoice amount based on category times the amount

  1. #1
    Registered User
    Join Date
    12-03-2020
    Location
    Australia
    MS-Off Ver
    Office 2019
    Posts
    20

    Invoice amount based on category times the amount

    Hello gurus!

    Hoping you could assist.

    I am trying to get the automated formula for invoice amount for each row, based on the category selected times the amount

    E.G. if Row 2, Category is selected as SpPBS, the sum of Column B-D adds up times rate 214.41.
    However, if Row 3, Category is selected as BMP, the sum of Column B-D adds up times rate 193.99.

    I am able to get the correct formula for individual only but cannot somehow make them combine together in one.

    WOuld be great if someone could guide me!

    Thanks again!


    Book1.xlsx
    Last edited by kcfungus; 03-11-2024 at 06:35 AM.

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

    Re: Invoice amount based on category times the amount

    Still using Excel 2019?
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    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 (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,794

    Re: Invoice amount based on category times the amount

    In E2 copied down:

    =IF($A2="","",SUM(B2:D2)*LOOKUP(A2,{"BMP","SpPBS"},{193.99,214.41}))

    Note: the values in the lookup must be in alphabetical order.

  4. #4
    Registered User
    Join Date
    12-03-2020
    Location
    Australia
    MS-Off Ver
    Office 2019
    Posts
    20

    Re: Invoice amount based on category times the amount

    Quote Originally Posted by AliGW View Post
    In E2 copied down:

    =IF($A2="","",SUM(B2:D2)*LOOKUP(A2,{"BMP","SpPBS"},{193.99,214.41}))

    Note: the values in the lookup must be in alphabetical order.


    Hello,

    Sorry yes still using excel 2019.
    Thanks for looking into this very quick and it worked - never thought to use lookup in this occasion.

+ 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] Counting the amount of times a word appears based on the corresponding date
    By ilovejellybeans in forum Excel General
    Replies: 9
    Last Post: 01-06-2022, 12:24 PM
  2. Calculating total amount based off category selection
    By davidstokes in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-14-2021, 01:39 PM
  3. [SOLVED] Macro to insert rows with copied text a certain amount of times based on a value in a cell
    By rhendrickson11 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-21-2017, 11:20 AM
  4. [SOLVED] Need to find a negative amount and match it to the positve amount based on Acct# and Date
    By sbrandhorst in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-07-2016, 07:49 PM
  5. Replies: 4
    Last Post: 12-10-2014, 08:47 PM
  6. [SOLVED] How can I calculate amount of time left based on amount spent?
    By KLD in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-23-2006, 11:25 AM
  7. How to add amount to a cell based on category and month
    By gabrielinlompoc in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 02-14-2006, 03:35 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