+ Reply to Thread
Results 1 to 8 of 8

Get a total price when product are marked with an X

  1. #1
    Registered User
    Join Date
    06-11-2020
    Location
    overath, germany
    MS-Off Ver
    office 365
    Posts
    10

    Get a total price when product are marked with an X

    Hi,

    i have a line of products that are marked with a numbers code, see example
    above the numbers are the prices, some products have a cost faktor in the price
    this means when the "870" is marked with an X the calculation should be b4xA2
    same with the 801
    for the other products like the A860 its just" when marked with X then give me the price above the product" in this case h2
    for the products 85,95 and 96 the products are not marked but numered, so give me the number times the price of the product, so for 85 it's 2xm1
    so i have 3 different way of calculating

    i would need a formula that looks at the entire row (4) calculates when there is a number or X and gives me the sum of that in Z4

    this is a very simplified example but it catches the gist of my problem, i cant get the (very long formula) to work without errors

    is there any way to capure this is a formula? when the row is empty i need the total to be empty too

    i hope you guys can help me, its a german excelsheet but an english formula is fine or an explenation on how to tackle this

    thank you in advance

  2. #2
    Valued Forum Contributor
    Join Date
    08-31-2007
    Location
    SW Ireland
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2311 Build 16.0.17029.20068) 32-bit
    Posts
    523

    Re: Get a total price when product are marked with an X

    I think SUMPRODUCT might help but I need to be 100% clear on the expected result.

    Could you show a calculation using the sample data giving the expected result as the layout is a bit awkward and I'm finding that the explanation is difficult to understand.

    Also,in cells M to O where you have the "nur neben..." text, can that text be moved to another row so that your worksheet only has either values or blanks in row 2? It would help with a solution.
    Excel 365 user. To unblock a downloaded macro-enabled workbook, go to your "Downloads" folder > right click on the workbook name > click 'Properties' > check the 'Unblock' checkbox. You can now open the workbook.

  3. #3
    Registered User
    Join Date
    06-11-2020
    Location
    overath, germany
    MS-Off Ver
    office 365
    Posts
    10

    Re: Get a total price when product are marked with an X

    hi sure and ty for your trouble

    the result would be
    order 870; 43,72 x 3,1 = € 135,52
    order 801; 14,57 x 3,5= € 51
    order A860; 123,34 = € 123,34
    order 85; 2x 67,03 = € 134,06
    order 96; 4x 0,17 = € 0,68
    order 2; 3,15 = € 3,15

    Result € 447,75

  4. #4
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,558

    Re: Get a total price when product are marked with an X

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    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.

  5. #5
    Valued Forum Contributor
    Join Date
    08-31-2007
    Location
    SW Ireland
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2311 Build 16.0.17029.20068) 32-bit
    Posts
    523

    Re: Get a total price when product are marked with an X

    I think that the following formula (not sure where it's supposed to go) gives the required result:

    Please Login or Register  to view this content.
    NB: IMPORTANT- the "nur neben" text must be swapped with the prices on row 1 i.e. ensure that row 2 just shows prices or blanks, not text for this to work.
    Last edited by deadlyduck; 01-09-2024 at 12:54 PM.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,509

    Re: Get a total price when product are marked with an X

    Minor change to Deadlyduck formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Change rows 1 & 2 as per his note.

    Would it not be easier just put a Factor with each product instead of "X" so in row 4 :

    870 would have 3.1, A860 would be 1 and 65 would be 2

    See attached row 11
    Attached Files Attached Files
    Last edited by JohnTopley; 01-09-2024 at 01:12 PM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  7. #7
    Registered User
    Join Date
    06-11-2020
    Location
    overath, germany
    MS-Off Ver
    office 365
    Posts
    10

    Re: Get a total price when product are marked with an X

    that would solve my problem, ill go have a chat with the department to see if we cant just nix the Faktor colum

    just one more question, since there are 5000 rows, is there a way to autofill just a part of a formula?

    so the part *(A13:V13) would be A14:V14 etc... is that possible? a google search left me puzzled

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,509

    Re: Get a total price when product are marked with an X

    I don't have 365 but I think it likely that the autofill can be done. Hopefully a 365 respondent will pick this up.

+ 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] complicated re-calculation price and total for stock and customer when price decrease
    By abdo M in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-01-2023, 08:57 AM
  2. Replies: 4
    Last Post: 10-05-2021, 05:04 PM
  3. Replies: 9
    Last Post: 11-13-2017, 04:33 AM
  4. [SOLVED] Excel Cell To Show Product Price But With A Minimum Price
    By icemoose in forum Excel General
    Replies: 6
    Last Post: 05-04-2016, 06:46 AM
  5. Replies: 19
    Last Post: 10-20-2014, 03:57 PM
  6. Replies: 1
    Last Post: 07-24-2013, 12:13 PM
  7. Replies: 0
    Last Post: 05-07-2013, 05:19 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