+ Reply to Thread
Results 1 to 3 of 3

How to use multiple formula at one cell

  1. #1
    Registered User
    Join Date
    05-14-2018
    Location
    Hong Kong
    MS-Off Ver
    MS 365
    Posts
    68

    How to use multiple formula at one cell

    I need to prepare a shipment report
    One tab is shipment details by listing shipment number, product name / quantity etc). I am required to calculated shipping cost per unit and shipping cost for each item of each shipment.

    For example: shipment 20000 - shipped 12 products fm AAA-MMM. (column D Prod Wt is weight of entire product. That means AAA is 5lb, BBB is 1lb...etc). I set this column is to calculated AAA - 147 units *5 = 735lb


    another tab is summary of each shipment including Shipment Fee+Misc Fee (sum up of these 2 fees become "Total Fee") Total Quantity of each shipment, # of pallets, shipment weight/total Weight
    Shipment weight is included pallet weight. For eg, shipment 20000 - shipment weight is 5058lb but Total weight is 4518lb by summing up all product weights.

    Tab: Shipment Details
    have set formula under column J "=[@[Total weight of product]]/'Shipment Summary'!$H$2*'Shipment Summary'!$D$2"
    but I need to manual change row number of shipment summary row H and D which isn't efficient.
    I wonder if possible to use VLook up of "Shipment ID" in order to identity the relevant Total Fee vs Total Weight
    Attached Files Attached Files

  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,916

    Re: How to use multiple formula at one cell

    In J2 and allow to overwrite other formulae in the column:

    =[@[Total weight of product]]/INDEX(Table2[Total Weight of shipment],MATCH([@[Shipment ID]],Table2[Shipment ID],0))*INDEX(Table2[Total Fee],MATCH([@[Shipment ID]],Table2[Shipment ID],0))

    A couple of improvements!

    In F2:

    =IF(COUNTIF(B$1:[@[Shipment ID]],[@[Shipment ID]])=1,SUMIF([Shipment ID],[@[Shipment ID]],[SHIP QTY]),0)

    In I2:

    =IF(COUNTIF(B$1:[@[Shipment ID]],[@[Shipment ID]])=1,SUMIF([Shipment ID],[@[Shipment ID]],[Total weight of product]),0)
    Attached Files Attached Files
    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,916

    Re: How to use multiple formula at one cell

    Thanks for the kind rep comment.

+ 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. Replies: 3
    Last Post: 08-05-2020, 10:33 PM
  2. Replies: 2
    Last Post: 01-14-2017, 10:57 AM
  3. Replies: 3
    Last Post: 08-16-2016, 07:58 AM
  4. Replies: 2
    Last Post: 04-12-2014, 02:02 AM
  5. Replies: 5
    Last Post: 04-09-2014, 10:36 PM
  6. [SOLVED] Excel formula to get multiple lines of a cell to a single cell
    By Nanimadhu in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-18-2014, 06:43 PM
  7. Replies: 8
    Last Post: 11-21-2012, 08:45 PM

Tags for this Thread

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