+ Reply to Thread
Results 1 to 4 of 4

Compare cell value with multiple other variables to display a result

  1. #1
    Registered User
    Join Date
    04-01-2017
    Location
    SC
    MS-Off Ver
    Excel 2010
    Posts
    2

    Question Compare cell value with multiple other variables to display a result

    Hi,

    I'm trying to create a calculator for use in my healthcare setting. I am stuck on the final part, which I want the calculator to spit out a pre-determined dose and directions. Here is how I have the 2 sheets set up.

    p1.JPG

    This sheet (calculator) contains the main calculator, the 'dose' field is where I need to put the formula.

    p2.JPG

    This sheet (data) contains the pre-determined dosages depending on whether we are treating (tx) or preventing (px) and based on the CrCl value.

    I want the "Dose" cell (L4) to compare the CrCl cell range (J4) to the 'data' sheet and whether the order is to Tx or Px (K4) then pull the corresponding info from the 'data' sheet


    I can't think of any way of doing this without resorting to a bunch of if then operators... any help would be much appreciated.

  2. #2
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Compare cell value with multiple other variables to display a result

    Hi,

    I recommend changing your data array structure a little bit.
    Then you can use a VLOOKUP function to pull your data.

    Attached is a example using your data.

    Hope this makes sense and is helpful.

    Cheers
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-01-2017
    Location
    SC
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Compare cell value with multiple other variables to display a result

    Thank you, there is no way I would have been able to solve this without your example.

    Much appreciated!!!!

  4. #4
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Compare cell value with multiple other variables to display a result

    You are very welcome. Glad I could be of some assistance.

    Cheers

+ 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: 7
    Last Post: 11-27-2015, 11:12 AM
  2. Replies: 2
    Last Post: 07-13-2015, 07:27 PM
  3. Compare the repeated value and display the result
    By gurum in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-25-2013, 07:56 AM
  4. Replies: 10
    Last Post: 12-19-2012, 03:07 PM
  5. Replies: 9
    Last Post: 07-31-2012, 04:37 PM
  6. Replies: 3
    Last Post: 07-10-2012, 01:49 AM
  7. Sum result of multiple variables
    By ChuckF in forum Excel General
    Replies: 4
    Last Post: 04-02-2010, 08:50 AM

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