+ Reply to Thread
Results 1 to 2 of 2

Formula Issue regarding referenced cells

  1. #1
    Registered User
    Join Date
    06-23-2016
    Location
    Boulder, CO
    MS-Off Ver
    2016
    Posts
    8

    Formula Issue regarding referenced cells

    Hey,

    So i created an if-then statement in Excel which happens to be in various columns (going horizontally). The data it depends on is going vertically. Since the spreadsheet is so big I wanted to be able to click and drag across. I'm sure some of you see where the issue is already. As I drag horizontally - the data that the cells depend on also go horizontally. The formula is as follows " =IF(O7=D13,IF(F13="successful","Successful Discovery Well", "Unsuccessful Discovery Well"), "No Drill")" I want O7 to turn into P7. That is fine. But i want D13 to turn into D14 and F13 to turn into F14 as I drag horizontally. Is there anyway to accomplish this? Using mixed or absolute reference has not had any help. Thank you

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula Issue regarding referenced cells

    Like this...

    =IF(O7=INDEX($D13:$D100,COLUMNS($A1:A1)),IF(INDEX($F13:$F100,COLUMNS($A1:A1))="successful","Successful Discovery Well","Unsuccessful Discovery Well"),"No Drill")

    Adjust for the end of ranges where I use down to D100 and F100.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Formula when the number of referenced cells changes
    By dkester in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-31-2013, 01:14 PM
  2. tweaking to formula which subracts referenced cells
    By myjebay1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-17-2012, 05:53 AM
  3. Replies: 1
    Last Post: 04-30-2012, 10:01 PM
  4. Locking Formula to referenced cells...
    By High_Road in forum Excel General
    Replies: 1
    Last Post: 03-23-2012, 12:12 PM
  5. Select referenced cells in a formula
    By kzbigboss in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-20-2009, 01:17 AM
  6. Sorting Referenced Cells in VBA and Keeping Them Referenced
    By BrownTeddyBear in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-08-2009, 06:15 AM
  7. Highlighting referenced cells within a formula
    By jonnyaykroyd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-29-2007, 08:48 AM
  8. Replies: 3
    Last Post: 08-18-2005, 11:05 AM

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