+ Reply to Thread
Results 1 to 4 of 4

finding an output from 5 variables in an array using exterior input user variables

  1. #1
    Registered User
    Join Date
    08-09-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    6

    finding an output from 5 variables in an array using exterior input user variables

    Hi,

    I'll say upfront im still a beginner with excel but i've been given the task of finding an output cell (TCO2/a/ha) from a large array of tree data. I've condensed the array to make it easier to solve the logic however im still stuck (after 3 blazing hopeful attempts).

    there are 5 variables: spacing, yield, period(age), species and management.

    the user must state which tree they are interested in the TCO2 absorbtion of by filling all the data cells (5 cells).

    a single value should be returned when all 5 search cells are filled.

    any help or link to applicable problem would be much appreciated,

    (first timer) Allsort.
    Attached Files Attached Files

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: finding an output from 5 variables in an array using exterior input user variables

    Hi and welcome to the forum!

    This formula will do what you want in cell F4:

    =INDEX($H$15:$H$46,MATCH(D10&D4&D5&D6&D7,INDEX($C$15:$C$46&$D$15:$D$46&$E$15:$E$46&$F$15:$F$46&$G$15:$G$46,,),0))

    However, it will only work if you first spend a little time cleaning up your data. The MATCH formula (which is being used in effect several times here) requires an EXACT match and, unfortunately, at present a lot of your data (e.g. in columns C and G) contains extra spacing ("BE " instead of "BE" is one example).

    If you can remove these first then you should be fine.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    08-09-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: finding an output from 5 variables in an array using exterior input user variables

    this is perfect, i'll just have to go through and find the best way to clear up the data,

    thanks!

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: finding an output from 5 variables in an array using exterior input user variables

    You're welcome.

    You can highlight any columns in which you are sure there are no spaces that you want to keep, then use the Find and Replace tool, enter a single space in the Find What box, leave the Replace With box blank and then click on Replace All.

    Regards

+ 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. Calculating Output Value with variable Input Variables
    By ExcelBal in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-03-2013, 01:38 PM
  2. User input variables Code not working
    By LeapingLizard in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-28-2012, 10:58 PM
  3. How do you input user defined variables into an AutoFilter statement?
    By trhoades in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-14-2010, 11:26 PM
  4. Input/Output text files fill in variables
    By cfunky in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-10-2010, 10:20 AM
  5. [SOLVED] variables in footers; how to prompt user for input within macro
    By dangles in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-20-2006, 07:20 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