+ Reply to Thread
Results 1 to 3 of 3

Need help please, no idea how to do this.

  1. #1
    Registered User
    Join Date
    04-15-2011
    Location
    Chagrin Falls, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    1

    Need help please, no idea how to do this.

    Okay, so what I have is a value in one cell that can change based on the selection of a record in a database (cell A in the examples below). In cell B, I'm using a formula that calculates a value based on the value of cell A and a fixed number like this "=sum(A1/.6)" So, cell B changes in value depending on the value of cell A (which is being determined by a record referenced in a database). Cell C is a fixed value that only changes when a different record from the database is selected, just like the value of cell A. I need cell D to compare cells C and B. If the value of cell B is greater than cell C, I need cell D to display the value of cell C but if cell B is less than cell C, I need cell D to display the value of cell B.

    Example 1: (cell B is greater than cell C so cell D needs to display the value of C)
    ----A---------B---------C---------D
    $25.00-----42--------21-------21

    Example 2: (cell B is less than cell C so cell D needs to display the value of B)
    ----A---------B---------C---------D
    $7.00-----10--------21-------10

    Hope I've explained this correctly. Any help would be greatly appreciated.

    Thanks,
    El T

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Need help please, no idea how to do this.

    =MIN(B1,C1)
    Is that what you need?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Need help please, no idea how to do this.

    @ElTeniente

    I think you should click on the Forum Rules link at top of page and pay particular attention to Rule #1.

+ 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