+ Reply to Thread
Results 1 to 8 of 8

Cpying the formula accross all columns keeping the reference column but chancging rownumbr

  1. #1
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Wisbech England
    MS-Off Ver
    Excel 2010
    Posts
    308

    Cpying the formula accross all columns keeping the reference column but chancging rownumbr

    Hi ALL
    How can I copy this formula across to all columns keeping the source column always B but changing the row number when copying across?

    =IF(Index!B4=1,"Team briefing required",IF(Index!B4=2,"Full Re-Training of the procedure required",""))

    Thank you.

  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,740

    Re: Cpying the formula accross all columns keeping the reference column but chancging rown

    if you copy across the row number will not change
    but a $ in front of the column letter , will stop the column changing as you copy across

    =IF(Index!$B4=1,"Team briefing required",IF(Index!$B4=2,"Full Re-Training of the procedure required",""))

    the row will change if you copy down

    so assuming the formula is in A1 and you copy to E1
    then it will still read index!$B4=1

    did you want the row number to change from a 4
    to 8
    as its moved from A to E

    and also the B to change
    to F
    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.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: Cpying the formula accross all columns keeping the reference column but chancging rown

    Try it like this:

    =IF(INDIRECT("'Index'!B"&COLUMNS($A:A)+3)=1,"Team briefing required",IF(INDIRECT("'Index'!B"&COLUMNS($A:A)+3)=2,"Full Re-Training of the procedure required",""))

    Hope this helps.

    Pete

  4. #4
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Cpying the formula accross all columns keeping the reference column but chancging rown

    =IF(INDEX(index!$B$4:$B$100,COLUMN(A1))=1,"Team briefing required",IF(INDEX(index!$B$4:$B$100,COLUMN(A1))=2,"Full Re-Training of the procedure required",""))
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Cpying the formula accross all columns keeping the reference column but chancging rown

    Try to replace Index!B4 with:

    INDIRECT("Index!B"&COLUMN(D:D))

    in your formula.
    Quang PT

  6. #6
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Wisbech England
    MS-Off Ver
    Excel 2010
    Posts
    308

    Re: Cpying the formula accross all columns keeping the reference column but chancging rown

    Quote Originally Posted by RobertMika View Post
    =IF(INDEX(index!$B$4:$B$100,COLUMN(A1))=1,"Team briefing required",IF(INDEX(index!$B$4:$B$100,COLUMN(A1))=2,"Full Re-Training of the procedure required",""))
    Hi Robert
    I have used your solution and it works but I'm having an issues with the formula as it doesnt put the text into last 2 columns.
    This is a sample workbook only but I am getting the same problem in my original workbook.
    Can you tell me what I am doing wrong here please?
    Thank you for your help :-)
    Dan
    Attached Files Attached Files

  7. #7
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Cpying the formula accross all columns keeping the reference column but chancging rown

    COLUMN(C7) returns 3 as C us the 3rd letter of the alphabet so your formula starts from 3rd value in Column B of the Index sheet(WOPR2203 Procedure3 v4 20022015)
    Change that to
    =IF(INDEX(Index!$B$2:$B$48,COLUMN(A7))=1,"Team briefing required",IF(INDEX(Index!$B$2:$B$48,COLUMN(A7))=2,"Full Re-Training of the procedure required",""))
    to return first and the subsequent values.

  8. #8
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Wisbech England
    MS-Off Ver
    Excel 2010
    Posts
    308

    Re: Cpying the formula accross all columns keeping the reference column but chancging rown

    Quote Originally Posted by RobertMika View Post
    COLUMN(C7) returns 3 as C us the 3rd letter of the alphabet so your formula starts from 3rd value in Column B of the Index sheet(WOPR2203 Procedure3 v4 20022015)
    Change that to
    =IF(INDEX(Index!$B$2:$B$48,COLUMN(A7))=1,"Team briefing required",IF(INDEX(Index!$B$2:$B$48,COLUMN(A7))=2,"Full Re-Training of the procedure required",""))
    to return first and the subsequent values.
    Hi Robert
    Thank you for your help.
    This has worked like a charm
    Dan

+ 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. Merging three columns of dates in to one column keeping the oldest date
    By sshubert in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-31-2012, 10:33 AM
  2. Cpying Unique entries to new spreadsheet
    By gavster in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-11-2008, 07:38 AM
  3. Replies: 0
    Last Post: 11-15-2007, 02:37 AM
  4. [SOLVED] Sorting rows/columns and keeping reference!
    By minismood in forum Excel General
    Replies: 3
    Last Post: 01-12-2006, 11:10 AM
  5. Replies: 5
    Last Post: 02-11-2005, 06:06 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