+ Reply to Thread
Results 1 to 8 of 8

Finishing touch: converting quantities to reflect unit of measure

  1. #1
    Registered User
    Join Date
    08-21-2012
    Location
    Eugene, OR
    MS-Off Ver
    Excel 2007
    Posts
    4

    Finishing touch: converting quantities to reflect unit of measure

    HelpBook1.xlsx
    This attachment is a representative sample of my workbook.

    I’m wrestling with a tricky issue. My workbook helps me inventory quantities of chemical material. I will be filing a report with an agency that requires quantity data to be in coded groups. The sheet already has fields populated with =VLOOKUP set to translate a quantity entered manually into code. I also have columns containing the chemical component, physical state and density.

    Here’s where it gets interesting.

    The quantity I input requires recalculation based on the physical state of the inventory part. Did ya get that? In other words, the input varies depending on whether the material is solid, liquid, or gas. The purpose of this is to convert the quantity given to the appropriate units of measure. Density fields are also populated using =VLOOKUP.

    If the physical state field reads "1," no change is required. If the physical state field reads “2” or “3”, the given quantity must be treated as a numerator and density a denominator. The result of the calculation then must be entered into the =VLOOKUP function which selects a quantity code instead of the given quantity.

    Ideas, folks? Thanks in advance,
    Sarah

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Finishing touch: converting quantities to reflect unit of measure

    sounds like a fairly simple if() statement would give you what you need?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    08-21-2012
    Location
    Eugene, OR
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Finishing touch: converting quantities to reflect unit of measure

    Okay, sure, =IF() is part of the solution. My question: what is the most streamlined method for integrating an =IF() into the workbook without adding additional columns? I resist the idea of adding a third set of columns to independently carryout =IF(). There are already too many fields.


    maybe altering =VFLOOKUP() to include an =IF statement?

    I appreciate fresh perspectives as I detangle all these logic threads... thanks!

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Finishing touch: converting quantities to reflect unit of measure

    Could you please add an example of what you need in your sheet? - Thx

  5. #5
    Registered User
    Join Date
    08-21-2012
    Location
    Eugene, OR
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Finishing touch: converting quantities to reflect unit of measure

    Pepe- Thanks for your response. Maybe I don't understand your request. By the time I can provide an example of what I need, I'm pretty sure I'll have the solution. In general terms, I am experimenting with integration of a nested =IF(), or maybe some conditional formatting, in search of a process that will automate the calculation to a greater degree. There are probably lots of ways to get to that end, and I wonder if y'all might come up with a creative solution that I missed.

  6. #6
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Finishing touch: converting quantities to reflect unit of measure

    My question was for you to fill in manually an example of what you want achieved. If you find this too much work, so be it.

  7. #7
    Registered User
    Join Date
    08-21-2012
    Location
    Eugene, OR
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Finishing touch: converting quantities to reflect unit of measure

    Geez~! Well, my conundrum may be cake to y'all but I feel challenged by it and I appreciate creative alternatives and feedback. I described the solution I'm looking for, and hey, no problem. Don't help, pepe. That's cool. Thanks anyway.

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Finishing touch: converting quantities to reflect unit of measure

    Sarah, I think Pepe was asking to to add formulas to the workbook without any IF functions, with an explanation of why you chose than formula based on state. Then someone might understand the logic, and give you formulas that automatically adapt.
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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