+ Reply to Thread
Results 1 to 4 of 4

Calculate numbers from given data

  1. #1
    Forum Contributor
    Join Date
    04-30-2011
    Location
    wirral,england
    MS-Off Ver
    Excel 2010
    Posts
    148

    Calculate numbers from given data

    Hello All
    I am using excel 2007,on the attached worksheet I have 3 cols of data in cols L,O,Q the values of which will determine the numerical values in cols AX & AY.eg If L5 = LST & O5 = 1 & Q = CHS then AX5 & AY5 will have
    values of 101 & 148 respectively.Is it possible to use a formula or macro to produce the values in AX & AY.The
    rows can be over 500 long.I have left an empty row between data types for illustration only,there are no empty rows in the data.
    Many thanks for help given.
    Attached Files Attached Files
    Last edited by bigband1; 09-10-2013 at 02:54 PM.

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

    Re: Calculate numbers from given data

    I'm sure there is a formula or macro that will produce the values in AX and AY. However, it will be impossible for us to help you build that formula/macro without a good understanding of the logic or math or process that allows you to go from the input values to the output values. Can you explain in detail how you get 101 and 148 from those inputs?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Contributor
    Join Date
    04-30-2011
    Location
    wirral,england
    MS-Off Ver
    Excel 2010
    Posts
    148

    Re: Calculate numbers from given data

    Thanks for reply
    The values in AX & AY are fixed,IF L2 = GR1 AND O2 =1 AND Q2 = CHS then AX2 and AY2 will appear as 106 & 169.I have tried to construct a formula
    using nested IF functions with no success.
    Thanks again.

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    14,327

    Re: Calculate numbers from given data

    Considering there are three input variables and who knows how many possible values for each input variable, yes, nested IF() functions would be large, unwieldy, and difficult to impossible.

    I'm not sure I understand what you mean by "Ax and AY are fixed"? It sounds to me like AX and AY change depending on what values are put into L, O, and Q?

    If there is no logic or reasoning that can be used to determine AX and AY, you may need to resort to a lookup table of some kind. http://office.microsoft.com/en-us/ex...011.aspx?CTT=1 You could concatenate the three text strings together, then use that in a lookup function to search a lookup table for that combination and return the desired values. I don't know how many different combinations there are, but I expect that there will be some effort in putting the lookup table together.

+ 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. [SOLVED] Calculate only with cells which contain numbers
    By mkrkac in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-07-2012, 05:34 AM
  2. Calculate weekly numbers from daily numbers
    By cnutter in forum Excel General
    Replies: 1
    Last Post: 09-01-2010, 06:32 PM
  3. calculate the sum of the 5 lowest numbers.
    By Jessika in forum Excel General
    Replies: 4
    Last Post: 05-21-2008, 06:29 PM
  4. [SOLVED] Calculate sum of numbers with conditions
    By Curtis in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  5. [SOLVED] Calculate In-Between Numbers
    By Brenda Rueter in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-10-2005, 12:06 PM

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