+ Reply to Thread
Results 1 to 15 of 15

need dynamic cell address for mid level data validation dead end

  1. #1
    Forum Contributor
    Join Date
    08-17-2010
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    127

    need dynamic cell address for mid level data validation dead end

    Column D is full of either "y" or "n".

    i want to mark all cells in rows A and B as invalid if the value of D on their row is "n"

    Example.

    A1=Bla B1=Tra D1=n
    A2=Bla B2=Tra D2=y

    A1 and B1 are valid
    A2 and B2 can marked as invalid

    I was attempting to use something like =IF("y"<>ADDRESS(ROW(),3),TRUE,FALSE)
    when i failed miserably - couldn't get the damn if to use the custom crafted address.


    Or how do i make:

    =OFFSET(ADDRESS(ROW(),5),0,2)
    work....
    Last edited by Polymorpher; 09-17-2014 at 07:35 AM.

  2. #2
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: mid level data validation dead end

    Hi,

    Can you please upload a sample workbook without any confidential data , showing your requirement manually .

    Punnam

  3. #3
    Forum Contributor
    Join Date
    08-17-2010
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    127

    Re: mid level data validation dead end

    sample.xlsx here we go
    Last edited by Polymorpher; 09-17-2014 at 04:10 AM.

  4. #4
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: mid level data validation dead end

    Hi ,

    I am not sure about Data Validation .

    This could be a other way bit similar to your required result .

    Punnam
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    08-17-2010
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    127

    Re: mid level data validation dead end

    I have a way to mass delete invalid cells marked by data validation.

    I don't have a way to delete stuff matching that criteria by other means.

    if you can delete the non matching cells via your method - sure.

  6. #6
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: mid level data validation dead end

    HI,

    The attachment in my previous post was not uploaded .
    Check this attached file

    Punnam
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    08-17-2010
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    127

    Re: mid level data validation dead end

    if you are going to build a support structure you might as well do a simpler one:

    =IF(INDEX($D$1:$D$15,ROW())="y",OFFSET(INDEX($D$1:$D$15,ROW()),,-3),"")

    ...for column A obviously. I can also make the offset dynamic but you get the point.

    Point is all of this is avoided when using data validation.

  8. #8
    Forum Contributor
    Join Date
    08-17-2010
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    127

    Re: need dynamic cell address for mid level data validation dead end

    this whole thing would unravel if i knew how to make something like this work:

    =OFFSET(ADDRESS(ROW(),5),0,2)

  9. #9
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: need dynamic cell address for mid level data validation dead end

    @ Polymorpher,

    I think your requirement is not clear to me As per my understanding
    You need to remove the Invalid data in Sheet1 & Get the address of all the valid cells in sheet1

    if that is the case see the revised sheet .

    Punnam
    Attached Files Attached Files
    Last edited by Punnam; 09-17-2014 at 07:41 AM.

  10. #10
    Forum Contributor
    Join Date
    08-17-2010
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    127

    Re: need dynamic cell address for mid level data validation dead end

    The address i am able to get... However I can't use it within other functions.

    Try - filling 10 rows of column A with numbers only. and try to use that address:
    =SUBSTITUTE(IF(D1="y",(CELL("address",A1)),""),"$","")
    with a function:
    =SUM(SUBSTITUTE(IF(D1="y",(CELL("address",A1)),""),"$",""):A5)

    I need a method that gets the addresses in such dynamic ways but can also use them inside other functions directly.
    That way it would most probably work in data validation as well.

  11. #11
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: need dynamic cell address for mid level data validation dead end

    @ Polymorpher ,

    I think its time,
    More attention is required other forum members .Post Dummy Post saying "BUMP" so that other member can also take part in this.
    "=SUM(SUBSTITUTE(IF(D1="y",(CELL("address",A1)),""),"$",""):A5)" need a indirect function to total it
    Punnam

  12. #12
    Forum Contributor
    Join Date
    08-17-2010
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    127

    Re: need dynamic cell address for mid level data validation dead end

    Bump

    I have seen a guy use a string to craft such dynamic addresses and use them within regular functions but i lost the document that had it.

    =INDIRECT(IF(D5="y",(CELL("address",A8)),0))

    works, now i'll grind to make something usable with data validation.
    Last edited by Polymorpher; 09-17-2014 at 08:33 AM.

  13. #13
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: need dynamic cell address for mid level data validation dead end

    You can try the formula given below for data validation and circle the invalid data. In the data validation --> Allow --> Custom --> Paste the formula given below in the formula box --> Error Alert --> Style --> Information --> OK.
    Now select your data set and click on Data Validation -> Circle Invalid Data

    Please Login or Register  to view this content.
    Is this something you can work with?
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  14. #14
    Forum Contributor
    Join Date
    08-17-2010
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    127

    Re: need dynamic cell address for mid level data validation dead end

    Jesus it looks so simple, and yet i was so far away. Thats where the know-how kicks in i suppose.

    So yeah that does it.

  15. #15
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: need dynamic cell address for mid level data validation dead end

    Glad I could help. Thanks for the feedback.

+ 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] 3 Level Dependent Data Validation
    By ChristianZags in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-17-2014, 01:17 AM
  2. [SOLVED] Multi-Level Data Validation Problem
    By warrior2411 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-21-2013, 12:42 PM
  3. [SOLVED] Formula Based on Multi-Level Data Validation Selection
    By warrior2411 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-07-2013, 08:34 PM
  4. [SOLVED] Multi-level data validation (perhaps using VLOOKUP?)
    By malkusm in forum Excel General
    Replies: 6
    Last Post: 08-06-2012, 10:34 PM
  5. Multi-level Data Validation with Lists
    By saschagraef in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 12-16-2010, 08:49 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