+ Reply to Thread
Results 1 to 23 of 23

Formula to increment indirect references

Hybrid View

freud1 Formula to increment indirect... 03-05-2009, 12:10 PM
NBVC Re: Formula to increment... 03-05-2009, 12:19 PM
freud1 Re: Formula to increment... 03-05-2009, 12:41 PM
freud1 Re: Formula to increment... 03-05-2009, 12:45 PM
NBVC Re: Formula to increment... 03-05-2009, 12:49 PM
freud1 Re: Formula to increment... 03-05-2009, 01:01 PM
NBVC Re: Formula to increment... 03-05-2009, 01:23 PM
freud1 Re: Formula to increment... 03-05-2009, 04:51 PM
freud1 Re: Formula to increment... 03-05-2009, 06:26 PM
NBVC Re: Formula to increment... 03-05-2009, 09:56 PM
freud1 Re: Formula to increment... 03-06-2009, 04:57 AM
NBVC Re: Formula to increment... 03-06-2009, 08:56 AM
NBVC Re: Formula to increment... 03-06-2009, 12:16 PM
freud1 Re: Formula to increment... 03-06-2009, 12:31 PM
NBVC Re: Formula to increment... 03-06-2009, 12:39 PM
freud1 Re: Formula to increment... 03-07-2009, 10:03 AM
  1. #1
    Forum Contributor
    Join Date
    06-13-2008
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    277

    Formula to increment indirect references

    Hi guys,

    I have a sheet which needs to look up one reference and then fill a table with the rest of them.

    EG:

    Cell A1 contains '0091 911'!$E$2 (cell E2 contains value 100)

    Cell A2 contains =indirect(A1) and displays value 100

    I need a formula which will auto fill the remaining cells in the table.

    eg:

    Cell A3 fills to contain '0091 911'!$E$3 (row +1)

    Cell B2 fills to contain '0091 911'!$F$2 (column +1)

    so it needs to fill the Indirect reference and not =indirect(A1),=indirect(A2)....

    any ideas?

    thanks

    F
    Last edited by freud1; 03-07-2009 at 10:05 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula to increment indirect references

    One way...

    In A2:

    =INDIRECT("'0091 911'!"&ADDRESS(ROW(),COLUMN(E$1)))

    copied down and to the next column

    or better, if you place just the sheet name in A1: '0091 911

    =INDIRECT("'"&$A$1&"'!"&ADDRESS(ROW(),COLUMN(E$1)))
    Last edited by NBVC; 03-05-2009 at 12:21 PM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    06-13-2008
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    277

    Re: Formula to increment indirect references

    thanks NBVC but i dont think this is what im looking for,

    I think this will populate them with the cell/reference you are working in

    eg: if you are typing formula in cell A564 the formila would be =INDIRECT("'0091 911'!"&ADDRESS(564,COLUMN(E$1)))

    I need this to populate a grid of values by dates.

    So i have a table which has every date for 2008 on the 00091 911 sheet, then on another sheet I have a grid with just space for 31 days with a combo box to shoose the month.

    When the month Januart is selected, the cell link for the combo box populates with 1, this is then linked to a vlookup table so the first cell of my grid with 31 rows will populate with the reference on the 00091 911 sheet, so if someone clicks on Febuary, the first box will populate with the indirect reference to the 00091 911 sheet (A32) and then i would need the cells below to populate with A33, A34, A35 of the 00091 911 sheet.

    If someone was to click on October the first cell of my grid would populate something like a 276 of the 00091 911 sheet and then i would need the cells below to populate with A277, A278 etc.

    I also need this to work for colums

    basicly i have a table with a years worth of data (365 rows) and 48 pieces of data for each day.

    I want this to be populated into my grid for one month (31 rows, 48 pieces of data each) and this will then feed an automatic graph.

    Hope this makes sense

  4. #4
    Forum Contributor
    Join Date
    06-13-2008
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    277

    Re: Formula to increment indirect references

    this sounds a lot more confusing than it is,

    if cell A1 contains =indirect(C20)

    then is there a formula that will look at A1 and make cell A2 populate with =Indirect(c21)

    If the value in A1 changes to =Indirect(H750) then the cell in A2 should change to =INDIRECT(H751)

    does this make more sense?

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula to increment indirect references

    So you already have a formula that populates the first cell based on your combobox selection? What is that formula?

  6. #6
    Forum Contributor
    Join Date
    06-13-2008
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    277

    Re: Formula to increment indirect references

    ok here is the sheet i want to work on, hopefully this will explain better than me,
    Attached Files Attached Files

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula to increment indirect references

    I am wondering if you need to reference that table at all to get the cell address...

    Try this formula in G21 copied across and down the table...

    =IF(ISERR(($G$19&" "&ROWS($A$1:$A1)&", 2008")+0),"",INDEX('0091 911'!E:E,MATCH(($G$19&" "&ROWS($A$1:$A1)&", 2008")+0,'0091 911'!$A:$A,0)))
    does this work for you?

    You won't need the info in D3:D14 anymore..

  8. #8
    Forum Contributor
    Join Date
    06-13-2008
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    277

    Re: Formula to increment indirect references

    ok I put in in and it returned the "" value from the If formula :

    =IF(ISERR(($G$19&" "&ROWS($A$1:$A2)&", 2008")+0),""

    The formula is mind blowing! otherwise i'd try to tweak it to make it work!

    thanks for all your help!
    Last edited by freud1; 03-05-2009 at 05:12 PM.

  9. #9
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula to increment indirect references

    See the attached... it's your sample with new formulas....

    Does that help?
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    06-13-2008
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    277

    Re: Formula to increment indirect references

    or perhaps the formatting of my date, on the 0091 911 sheet they aqre formatted dd/mm/yy ?

  11. #11
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula to increment indirect references

    so if you openb my attachment you see blanks or when you apply it to your own document?

    I see that you are in compatibility mode. I can save this in XL2007 tomorrow and then you can trt to open it in 2007 and see if that affects it..

  12. #12
    Forum Contributor
    Join Date
    06-13-2008
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    277

    Re: Formula to increment indirect references

    That would be great,

    Yes the sheet you sent doesnt populate with walues, I dont know if it effects it but removing the +0 from the formula reults in the Iserr function returning a false value, however it still results in a N/A fromt he whole formula

  13. #13
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula to increment indirect references

    Ok. Try now.

    You shouldn't remove the +0... that converts the text string date (e.g "February 1, 2008") to an actual serial number that excel understands and can compare to the dates in the other sheet....

    I am not sure why you would be seeing blanks.
    Attached Files Attached Files

  14. #14
    Forum Contributor
    Join Date
    06-13-2008
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    277

    Re: Formula to increment indirect references

    Hi,

    yes im still producing blank cells,

    Its definately a TRUE return on your Iserr formula because if i change the "" value to "error"

    =IF(ISERR(($G$19&" "&ROWS($A$1:$A1)&", 2008")+0),"error",INDEX('0091 911'!B:B,MATCH(($G$19&" "&ROWS($A$1:$A1)&", 2008")+0,'0091 911'!$A:$A,0)))

    then all cells populate with "error"

    does this help?

  15. #15
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula to increment indirect references

    Great... please let us know.

    It must have been a date format issue, then for sure.

  16. #16
    Forum Contributor
    Join Date
    06-13-2008
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    277

    Re: Formula to increment indirect references

    lol that's what my gut was telling me, but i hate taking guesses at it! just looking at the data now! looks good so far!

  17. #17
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula to increment indirect references

    If you are satisfied with all the tests and results, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  18. #18
    Forum Contributor
    Join Date
    06-13-2008
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    277

    Re: Formula to increment indirect references

    The formula works great!

    Thanks for all you help with this!

    it is so much better than my original way!

+ 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