+ Reply to Thread
Results 1 to 9 of 9

Forumla to return a price based on three conditions:

  1. #1
    Registered User
    Join Date
    08-05-2019
    Location
    NOLA
    MS-Off Ver
    2019
    Posts
    5

    Forumla to return a price based on three conditions:

    Hello all,

    I am sort of facing a dilemma. At the end of every month, I have to prepare a billing file that totals all activity for each one of our clients. Unfortunately, this process takes me three days to complete because of all the data that is required and then reviewed.

    I have managed to input a few formulas that have made this process a little easier for me; however, I cannot figure out how to create a formula that will generate a price based on account number, contract, and description.

    Here is the tricky part for me:

    Each one of our clients are on a contract.
    Each of the contracts have different prices for the products we offer.

    For example:
    Clients
    001 - Client 1 - Contract 2
    002 - Client 2 - Contract 3
    003 - Client 3 - Contract 1

    Contract 1
    Product 1: 2.00
    Product 2: 4.00
    Product 3: 6.00

    Contract 2
    Product 1: 3.00
    Product 2: 6.00
    Product 3: 9.00

    In reference to the information included on the sample sheets:

    - Account number is entered in C2
    - Description is entered in E2; the format for the description (the data being billed) is date-company-product type(1, 2, or 3)
    - Price to be generated in R2

    Issue in play: C2 001 (Client 1 account number) that is on Contract 2 is being billed in E2 with date-company-product type 3 (product type 3 for 001) then potentially priced in R2 (9.00) automatically.

    Can anyone help me with a formula that allows me to enter the account number, matching the contract type, to generate the correct pricing based on the product being billed in R2?

    Thanks so much for the help everyone!

    I hope I did this right!>.<
    Attached Files Attached Files
    Last edited by thewiserbeauty; 08-06-2019 at 10:31 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. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,972

    Forumla to return a price based on three conditions:

    Welcome to the forum.

    Will you please attach a small sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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
    Registered User
    Join Date
    08-05-2019
    Location
    NOLA
    MS-Off Ver
    2019
    Posts
    5

    Re: Forumla to return a price based on three conditions:

    Thanks for the response! I realized I had to edit the sample, so I removed it then uploaded again! Thanks! Please let me know if there is anything else I need to fix.

  4. #4
    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. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,972

    Re: Forumla to return a price based on three conditions:

    Are you open to changes in your data layout? The pricing tab layout is not as I would wish it to be to be able to do the data crunching easily.

  5. #5
    Registered User
    Join Date
    08-05-2019
    Location
    NOLA
    MS-Off Ver
    2019
    Posts
    5
    Quote Originally Posted by AliGW View Post
    Are you open to changes in your data layout? The pricing tab layout is not as I would wish it to be to be able to do the data crunching easily.
    Yes, sure. I’m not picky about the formatting or layout.

  6. #6
    Registered User
    Join Date
    08-05-2019
    Location
    NOLA
    MS-Off Ver
    2019
    Posts
    5

    Re: Forumla to return a price based on three conditions:

    Any solution available?

  7. #7
    Registered User
    Join Date
    08-05-2019
    Location
    NOLA
    MS-Off Ver
    2019
    Posts
    5

    Re: Forumla to return a price based on three conditions:

    Hello Ali,

    Can you let me know if this is something possible to do?

    If not, I'll just settle with doing everything like I have been.

  8. #8
    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. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,972

    Re: Forumla to return a price based on three conditions:

    How do we know which client it is? We cannot work out the pricing unless we know the client. There is just an invoice number:

    Excel 2016 (Windows) 32 bit
    B
    C
    D
    E
    R
    1
    TYPE
    SOURCESYS.INVOICE#
    DESCRIPTION
    AMOUNT
    2
    INVOICE-SAMP
    001
    8/5/2019-HELLO, INC-PRODUCT 3
    9.00
    Sheet: Activity Report Sample

    Will the description always be in the same format?

    The layout change I suggested would be on the pricing sheet. I would arrange this in a normalised fashion thus:

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    1
    Contract 1 PRODUCT 1
    2.00
    2
    Contract 1 PRODUCT 2
    4.00
    3
    Contract 1 PRODUCT 3
    6.00
    4
    Contract 2 PRODUCT 1
    3.00
    5
    Contract 2 PRODUCT 2
    6.00
    6
    Contract 2 PRODUCT 3
    9.00
    7
    Contract 3 PRODUCT 1
    4.00
    8
    Contract 3 PRODUCT 2
    8.00
    9
    Contract 3 PRODUCT 3
    12.00
    Sheet: Contract_Prices Sample
    Last edited by AliGW; 08-10-2019 at 03:26 AM.

  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 2406
    Posts
    44,662

    Re: Forumla to return a price based on three conditions:

    I was totally confused, as you didn't show us your desired result!! So I've made a wild guess.

    See sheet 1. Yellow cells: Chose a contract in E1. Choose a few products in A. Orange cells: enter a few quantities. Take a look and then show us what your expected results are and put them where you expect to see them
    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

+ 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. Forumla for Selling Price - Cost, only if Sold
    By Kevin.Es in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-08-2018, 08:22 AM
  2. Replies: 1
    Last Post: 07-24-2013, 12:13 PM
  3. Need to Return Lowest Price based on Criteria
    By BYizz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-23-2013, 01:03 PM
  4. Replies: 4
    Last Post: 08-15-2012, 09:49 AM
  5. Return Price Based on Multiple Criteria
    By tigabalm in forum Excel General
    Replies: 2
    Last Post: 06-08-2011, 12:05 AM
  6. Replies: 5
    Last Post: 03-02-2011, 08:56 AM
  7. Return a price based on a customer from a drop down list
    By Pete Elbert in forum Excel General
    Replies: 7
    Last Post: 04-30-2006, 10:00 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