+ Reply to Thread
Results 1 to 5 of 5

Help: Combining a column reference with a number calculated in a cell

  1. #1
    Registered User
    Join Date
    02-11-2022
    Location
    Bristol
    MS-Off Ver
    Office 365
    Posts
    2

    Help: Combining a column reference with a number calculated in a cell

    Hi,

    I'm trying to find out how to combine a column with a number that I have calculated. For example, I have a formula which works out the length of the column which is:

    =LOOKUP(2,1/(B:B<>""),ROW(B:B))

    Which in this example outputs 1792 in cell I7

    I now want to be able to plot into a line graph something like this C3:C (and the value of) I7

    I've got a lot of graphs to make and so automating this with a macro would save me a lot of time but the issue is that the number of rows is always changing and I always want to start from C3

    I hope this makes sense. I'd really appreciate it if anyone could help me with this
    Attached Files Attached Files
    Last edited by JFreemantle; 02-11-2022 at 07:15 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,371

    Re: Help: Combining a column reference with a number calculated in a cell

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    02-11-2022
    Location
    Bristol
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Help: Combining a column reference with a number calculated in a cell

    Hi Ali

    Thank you! I've now added an example workbook - hopefully that will explain what I'm getting at in the description

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,371

    Re: Help: Combining a column reference with a number calculated in a cell

    For anyone helping with this, the formula is in F35, not F7.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,706

    Re: Help: Combining a column reference with a number calculated in a cell

    Try named ranges:

    e.g Named Range .... CH4_d_ppm

    =OFFSET('Excel Forum Help doc'!$F$3,,,COUNTIF('Excel Forum Help doc'!$F$3:$F$100,"<>"),1)
    Attached Files Attached Files
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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] Get row/column number from text cell reference value.
    By RollingStone88 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-04-2019, 06:28 AM
  2. Replies: 1
    Last Post: 08-14-2015, 02:49 AM
  3. Column number reference using cell reference
    By Fatrobo in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-16-2015, 12:50 AM
  4. how to reference cell value from column number and row number
    By jed38 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-11-2015, 07:37 PM
  5. [SOLVED] VLOOKUP to reference cell, not column number
    By Prodschdler in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-18-2013, 02:27 PM
  6. Using a calculated number as part of a formula reference
    By byzantium in forum Excel General
    Replies: 1
    Last Post: 09-14-2010, 06:23 PM
  7. Go to a cell in column, based on a reference number
    By Joshua@work in forum Excel General
    Replies: 5
    Last Post: 06-30-2010, 07:28 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