+ Reply to Thread
Results 1 to 2 of 2

building formula using integers in different cells

  1. #1
    Registered User
    Join Date
    03-29-2010
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    70

    building formula using integers in different cells

    Hi,

    I'm using the following cell formula:

    =INDEX('financial-milling'!$H$3630:$HR$3630,MATCH(AK$30,'financial-milling'!$H$5:$HR$5,))/1000

    Does anyone know of a way to replace the reference to '3630' with an integer value referenced from a different cell? This would enable to change $H$3630 reference in formula by entering a new integer value in a different cell.

    Thanks,

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,749

    Re: building formula using integers in different cells

    assuming the cell used is A1 and B1
    =INDEX('financial-milling'!$H$3630:$HR$3630,MATCH(AK$30,'financial-milling'!$H$5:$HR$5,))/1000
    then you should be able to use the indirect

    which should be

    =INDEX(indirect("'financial-milling'!"&A1&":"&B1),MATCH(AK$30,'financial-milling'!$H$5:$HR$5,))/1000

    your missing part of the match after $HR$5, ???? ))

    simplified
    =INDEX(INDIRECT(A1&":"&B1),MATCH(A2,F1:F10,0))
    see attached formula

    see formula in A5
    uses A1, B1 and A2

    so if you change A2 - the result will change
    also cell A1 and B1 shows the range

    if all you want to change is the row number than

    =INDEX(indirect("'financial-milling'!H"&A1&":HR"&B1),MATCH(AK$30,'financial-milling'!$H$5:$HR$5,))/1000
    and just put the row numbers in A1 and B1

    if the ROW is the same
    then just use 1 cell - for example A1
    =INDEX(indirect("'financial-milling'!H"&A1&":HR"&A1),MATCH(AK$30,'financial-milling'!$H$5:$HR$5,))/1000
    Attached Files Attached Files
    Last edited by etaf; 11-05-2014 at 07:55 PM.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ 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. IF Formula Query for Integers and Non-Integers
    By mrvp in forum Excel General
    Replies: 3
    Last Post: 03-09-2012, 07:35 PM
  2. A list of Consecutive Integers, can I search for missing integers
    By CM in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07:05 AM
  3. A list of Consecutive Integers, can I search for missing integers
    By Harlan Grove in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 09-06-2005, 05:05 AM
  4. A list of Consecutive Integers, can I search for missing integers
    By CM in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. [SOLVED] A list of Consecutive Integers, can I search for missing integers
    By CM in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 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