+ Reply to Thread
Results 1 to 5 of 5

Dropping cell numbers in a formula as you auto-fill across columns

  1. #1
    Registered User
    Join Date
    07-11-2013
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    7

    Question Dropping cell numbers in a formula as you auto-fill across columns

    Hi, is there a way to drop cell numbers in a formula as you drag the formula across a number of columns?

    For example, if in B6 I have "=IF(AND(B$5=OrderedBlindingCodeMatches!$A$2,$A6=OrderedBlindingCodeMatches!$B$2),1,0)", then in C6 can I have "=IF(AND(B$5=OrderedBlindingCodeMatches!$A$3,$A6=OrderedBlindingCodeMatches!$B$3),1,0)", and so on, without changing the numbers by hand?

    Example attached...

    Test.xlsx

    Thank you
    Last edited by Nebs; 08-23-2013 at 12:05 AM.

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Dropping cell numbers in a formula as you auto-fill across columns

    Here!

    Try This in B6 -

    Drag Across and Down -

    =IF(AND(B$5=INDIRECT("OrderedBlindingCodeMatches!A"&COLUMN(B1)),$A6=INDIRECT("OrderedBlindingCodeMatches!B"&COLUMN(B1))),1,0)
    Cheers!
    Deep Dave

  3. #3
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Dropping cell numbers in a formula as you auto-fill across columns

    But I have doubts with your above formula, the way you have made the references absolute.. Hope this is how you required it initially.

    Deep

  4. #4
    Registered User
    Join Date
    07-11-2013
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Dropping cell numbers in a formula as you auto-fill across columns

    Yeah absolute is how I need it.

    Your solution works great, thank you so much

  5. #5
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Dropping cell numbers in a formula as you auto-fill across columns

    Glad it helps!

    Deep

+ 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. Numbers as text dropping trailing decimals
    By Uncle.Bungle in forum Excel General
    Replies: 5
    Last Post: 10-02-2010, 11:41 AM
  2. Dropping High and Low Numbers
    By mr_architect in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-10-2008, 11:49 AM
  3. Replies: 3
    Last Post: 06-23-2006, 09:45 PM
  4. Cells dropping last to numbers
    By dickhob in forum Excel General
    Replies: 1
    Last Post: 01-11-2006, 04:20 PM
  5. [SOLVED] dropping whole numbers
    By Asheret in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-29-2005, 12: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