+ Reply to Thread
Results 1 to 2 of 2

Multiple formulas in one cell but all related

  1. #1
    Registered User
    Join Date
    09-18-2014
    Location
    New Egypt, NJ
    MS-Off Ver
    2010
    Posts
    1

    Question Multiple formulas in one cell but all related

    I need to write a formula in a single cell that says,

    If c4 is greater than or equal to k4 and less than or equal to m4, then c4*j4.
    But, if c4 is greater than or equal to k5 and less than or equal to m5, then c4*j5
    But, if c4 is greater than or equal to k6 and less than or equal to m6, then c4*j6
    But, if c4 is greater than or equal to k7, then c4*j7.

    Is there any way for this to be done? I put an example below of what the spreadsheet looks like. KM is a range that may change in the future, thus why I cannot just type the numbers in.

    (C) (E) (J) (K) (M)
    # of Orders $ Amount # of Orders
    10 $9.00 1 - 250
    20 $8.50 251 - 1000
    30 $7.75 1001 - 3000
    40 $7.00 3001 +

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,813

    Re: Multiple formulas in one cell but all related

    It looks to me like it should be a simple lookup function. The VLOOKUP() function is probably easiest to understand: http://office.microsoft.com/en-us/ex...011.aspx?CTT=1 One particular note: study how it uses the 4th range_lookup argument to handle the "in between" parts of your desired results.

    Because J is to the left of K, VLOOKUP won't actually work for your setup, though it should work just fine if you switch them. Assuming you switch J and K (and use only the lower boundary for each division), then the formula would look something like: =C4*vlookup(c4,$J$4:$K$8,2) the table might look something like:
    Please Login or Register  to view this content.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ 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. Need Help for creating Aviation related formulas
    By darpa999 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-18-2012, 03:43 AM
  2. Multiple Related Data Validations
    By Flyinace2000 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-24-2012, 12:53 PM
  3. [SOLVED] Showing cells that is related to a cell (multiple result)
    By irahatam in forum Excel General
    Replies: 1
    Last Post: 06-14-2012, 08:07 AM
  4. Match multiple cells and lookup related value
    By excelforum123 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-18-2012, 06:49 AM
  5. Multiple formulas in selected cell without damaging previous formulas.
    By excel5111987 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 02-05-2011, 06:15 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