+ Reply to Thread
Results 1 to 5 of 5

getting a ref error when deleting columns

  1. #1
    Registered User
    Join Date
    05-05-2017
    Location
    Natchitoches
    MS-Off Ver
    13
    Posts
    2

    getting a ref error when deleting columns

    trying to keep column e to say yes or no if i delete columns DX to EB.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: getting a ref error when deleting columns

    do you just mean if it would error then say yes?
    Please Login or Register  to view this content.
    If you want something done right... find a forum and ask an online expert.

    Time flies like an arrow. Fruit flies like a banana.

  3. #3
    Registered User
    Join Date
    05-05-2017
    Location
    Natchitoches
    MS-Off Ver
    13
    Posts
    2

    Re: getting a ref error when deleting columns

    if i delete the columns dx5:eb5 it will return a #REF
    .
    i'm trying to have column e look at those cells and if those cells contain 3 or more # then return yes. but once the week passes i will delete those columns. when i delete is when i get the ref error

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,913

    Re: getting a ref error when deleting columns

    Use INDIRECT function:

    =IF(COUNTIF(INDIRECT("DX"&ROW()&":EB"&ROW()),"*#")>=3,"YES","NO")

  5. #5
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: getting a ref error when deleting columns

    You could also use the OFFSET function. Paste this in E5 and copy down:

    =IF(COUNTIF(OFFSET(E5,0,123,1,5),"*#")>=3,"YES","NO")

    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
    Last edited by leelnich; 05-05-2017 at 01:31 AM.

+ 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] Deleting multiple columns based on columns' first row value
    By {=OR(value=array)} in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-14-2014, 04:00 PM
  2. Replies: 12
    Last Post: 01-30-2014, 01:33 AM
  3. Macros - adding columns and deleting columns
    By ds0919 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 04-22-2013, 07:52 AM
  4. Replies: 1
    Last Post: 04-30-2012, 12:07 PM
  5. VBA 1004 Error Deleting Rows or Columns
    By CaptMac in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-23-2010, 03:46 PM
  6. deleting all error characters
    By zachg in forum Excel General
    Replies: 5
    Last Post: 12-06-2007, 10:14 PM
  7. Combining Text from 2 Columns into 1 then Deleting the 2 Columns
    By sleepindogg in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-30-2006, 02:30 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