+ Reply to Thread
Results 1 to 4 of 4

Auto fill formula to last row, formula references another sheet

  1. #1
    Registered User
    Join Date
    03-20-2018
    Location
    Singapore
    MS-Off Ver
    Office 365 Excel 2016
    Posts
    68

    Auto fill formula to last row, formula references another sheet

    I have a formula that converts a "Yes" or "No" row to a "1" or "0".

    This formula is in another sheet.

    So I have one column "Yes", "No", "No", "No", "Yes", "Yes" etc.

    and in another sheet I have the equivalent 1,0,0,0,1,1

    I want to drag down the formula in the first cell to apply to all the rows in the original worksheet.

    This means I have to refer to the original worksheet for the last row number.

    How do I quickly do this without having to click and hold down until it reaches the last row?

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Auto fill formula to last row, formula references another sheet

    Something like this:

    Please Login or Register  to view this content.
    A1:A - where formula should be added
    Sheet1 - Sheet name where yes or No is found
    "=IF(Sheet1!B1=""yes"",1,0)" - Your formula

  3. #3
    Registered User
    Join Date
    03-20-2018
    Location
    Singapore
    MS-Off Ver
    Office 365 Excel 2016
    Posts
    68

    Re: Auto fill formula to last row, formula references another sheet

    How do I do this without using VBA?

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Auto fill formula to last row, formula references another sheet

    Hi,

    Once you have determined the last row, simply type the relevant address (e.g. A1:A1000) into the name box on the left of the formula bar to select all those cells, then type the formula and press Ctrl+Enter.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

+ 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 from one sheet to another, then auto fill formula down.
    By molonlabe in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-07-2016, 11:33 AM
  2. Auto fill a formula referencing a column and row of another sheet
    By Mobafett in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-19-2013, 10:44 AM
  3. [SOLVED] Using auto fill with a formula that references a sheet.
    By Alkahsu in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-28-2013, 02:00 AM
  4. [SOLVED] Auto-Fill formula to end of column, not end of sheet?
    By Trevasaurus in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-10-2012, 05:40 PM
  5. formula to auto fill date and amounts from checkbook register to budget sheet
    By Magneticwood in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-02-2012, 06:30 AM
  6. Replies: 1
    Last Post: 09-07-2011, 05:57 PM
  7. Replies: 2
    Last Post: 06-06-2005, 07:05 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