Results 1 to 4 of 4

Tried formula variations including "if", "sumif", "min", "match" but can't get it to work.

Threaded View

  1. #1
    Registered User
    Join Date
    11-19-2020
    Location
    Trondheim, Norway
    MS-Off Ver
    16
    Posts
    2

    Tried formula variations including "if", "sumif", "min", "match" but can't get it to work.

    Hello,

    I would really appreciate if someone could help me with the example attached.

    Column A lists potential regions to import from, and column B lists distances from those regions to my location (Trondheim). Column C lists the quantity produced in those regions, and in Column D I have a target of x kilos that I wish to import. In column E I have a CO2-factor that converges km*kg to kgCO2 produced. I want to import from the regions closest to me (shortest distance), and combined, the quantity from those regions should match my target of x kilos.

    To do this I need a formula that 1) sorts out the lowest values in column B, 2) sums up the values of the adjacent cells (quantity) until target value for quantity is reached, and finally, 3) all cells in column B that gets counted should be multiplied with their adjacent cells and then multiplied with the CO2-factor, before they are all summed together (distance x kg x CO2-factor).

    The purpose is to find the lowest number for CO2-emissions.

    Thank you in advance,

    Bjorn
    Attached Files Attached Files
    Last edited by bjorn123; 11-20-2020 at 05:23 AM. Reason: Change of title

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] VBA, User-defined formula argument referring to cell value calculated by Excel formula
    By ARAGORN II in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-23-2017, 01:57 PM
  2. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  3. Replies: 10
    Last Post: 12-16-2015, 03:16 PM
  4. Replies: 2
    Last Post: 03-21-2014, 11:43 AM
  5. Macro: Applying formula to multiple cells in excel (formula editing)
    By city in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-27-2012, 06:41 AM
  6. Replies: 0
    Last Post: 03-19-2012, 07:32 PM
  7. Replies: 1
    Last Post: 03-04-2012, 12:03 AM

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