+ Reply to Thread
Results 1 to 3 of 3

INDIRECT help for colums only so i can copy formula down and row number changes per row

  1. #1
    Registered User
    Join Date
    05-18-2021
    Location
    UK
    MS-Off Ver
    excel
    Posts
    2

    Red face INDIRECT help for colums only so i can copy formula down and row number changes per row

    Hello All,

    please can you help and point out where i am going wrong with this "F"&ROW in the INDIRECT formula


    =IF(INDIRECT("F"&ROW($F2))="","",(ROW(A1)))

    every time i insert a new columns before F the formula changes to

    =IF(INDIRECT("F"&ROW($G2))="","",(ROW(A1)))

    why is my Cell $F2 changing to $G2 with the inserted column


    this works fine, but i am unable to copy the formula down the rows as F2 will stay static and i need it to change to F3, F4, F5 and so on.
    =IF(INDIRECT($F2)="","",(ROW(A1)))

    i am also using this in another formula:
    =MATCH(INDIRECT("F"&ROW($F2)),INDIRECT("G2:G20"),0)))
    again INDIRECT("G2:G20") this indirect is fine and does not change when adding a new column before F

    when i add a column before F to add the team rankings for another time period.
    the ("F"&ROW($F2)) again changes to ("F"&ROW($G2))




    ########

    Also in sheet 2 i would like to rearrange the data so that the rank is value in the table, i can then use this data to build a line graph. can you please tell me the best way to do this? vlookup? match and index?



    thanks in advance for any help offered.
    Attached Files Attached Files
    Last edited by dappa_don; 06-04-2021 at 10:23 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: INDIRECT help for colums only so i can copy formula down and row number changes per ro

    Rather than tell us what's not working, explain what you are trying to do. We often see members come up with really impressive formulas that either dont really do what they want, could be simplified down to a fraction of the original formula or is not even the right formula
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    05-18-2021
    Location
    UK
    MS-Off Ver
    excel
    Posts
    2

    Re: INDIRECT help for colums only so i can copy formula down and row number changes per ro

    Sure, spoken just like me at work, lol. I don't want to hear what is not working so tell me why. tell me what you are trying to accomplish?

    i am building a ranking spreadsheet for football (soccer if you will) teams. i would also like a line graph displaying position changes in the league.

    all i want is to be able to add more data in to column F when data is available. days well time period will be amount of games actually but sample spreadsheet attached shows days. into column F. when i add new column to F to add new data formula/function (indirect) changes and breaks my match. column F must stay static but row must change as i want to copy formula down the rows for other teams. as it is calculating the position changes when new data is added. so must column G stay static but that is working.

    my trouble really is here: ("F"&ROW(F2)) F2 changes when a new column is added to F for new rankings, so i need F column INDIRECT but row can change as i copy formula down rows.

    oh and all of these formulas should only display values if there is team name in column F for that row. but that to is working

    =IF(INDIRECT("E"&ROW(E2))="","",(MATCH(INDIRECT("F"&ROW($F2)),INDIRECT("G2:G20"),0)))

    (INDIRECT("E"&ROW(E2)) & (INDIRECT("F"&ROW(F2)), fail, when new column is added before relevant column. F2 changes to G2. but should remain F2 for match to work as desired to calculate the rankings change.

    In sheet 2 i then want to do a index match to get teams and time period to look up rank on that day for that team.

    hope that makes sense. many thanks for any help. hopefully one of you excel gurus can see my mistake. fyi i should point out that i am using libre calc and not excel. but spreadsheet is xlsv hope its not calc is problem and formula is working in excel.
    Last edited by dappa_don; 06-05-2021 at 02:14 AM.

+ 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. copy/paste or dragging cells using INDIRECT in formula
    By notoriusjt2 in forum Excel General
    Replies: 31
    Last Post: 02-10-2016, 07:46 PM
  2. [SOLVED] Indirect formula will not copy across worksheet
    By marshallmr in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-04-2015, 09:42 AM
  3. [SOLVED] INDIRECT formula to another sheet to copy across column reference
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-12-2014, 04:02 PM
  4. [SOLVED] INDIRECT with conditions problem - spreadsheet copied weekly same rows/colums/names
    By annazet in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-04-2013, 11:22 AM
  5. Formula required for comparing multiple colums to multiple colums
    By Pringgles in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-30-2012, 07:23 AM
  6. copy down an indirect formula
    By Joeb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-09-2006, 10:30 PM

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