+ Reply to Thread
Results 1 to 13 of 13

Adding a column that nullifies cells when something is entered in it.

  1. #1
    Registered User
    Join Date
    07-05-2022
    Location
    USA
    MS-Off Ver
    2016
    Posts
    36

    Adding a column that nullifies cells when something is entered in it.

    Hey guys, appreciate the help. What I need is a formula in the AG column in the Guest_Info sheet that allows for me to put in a "E". When this "E" is entered in that cell it somehow nullifies the dates that these guests stayed in this row and doesn't send them to the query. These dates are carried over to a query that I have to do a specific count on how many days each guest stays. This "E" would be used for dates that aren't counted against guests. Or I could even put this "E" in there to not count members names since they have full time access anyways. Does this make sense? Here is the workbook. Let me know if I can elaborate further. Again, thank you so much!
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Adding a column that nullifies cells when something is entered in it.

    Your sample workbook does not have any queries or any VBA code to extract data. I am not sure, therefore, what it is you need help with.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    07-05-2022
    Location
    USA
    MS-Off Ver
    2016
    Posts
    36

    Re: Adding a column that nullifies cells when something is entered in it.

    Here you go. Sorry about that. Let me know if this is better. Thanks!
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-05-2022
    Location
    USA
    MS-Off Ver
    2016
    Posts
    36

    Re: Adding a column that nullifies cells when something is entered in it.

    Bump please

  5. #5
    Registered User
    Join Date
    07-05-2022
    Location
    USA
    MS-Off Ver
    2016
    Posts
    36

    Re: Adding a column that nullifies cells when something is entered in it.

    Bump! Thanks

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Adding a column that nullifies cells when something is entered in it.

    Mmm, Power Query is not my strong suit.

    For the benefit of others looking at this thread, the query is:

    Please Login or Register  to view this content.
    Sure it's very straightforward, but not for me.

    I will seek help.

  7. #7
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Adding a column that nullifies cells when something is entered in it.

    It appears you can just filter out E values at the start of the query:

    Please Login or Register  to view this content.
    Rory

  8. #8
    Registered User
    Join Date
    07-05-2022
    Location
    USA
    MS-Off Ver
    2016
    Posts
    36

    Re: Adding a column that nullifies cells when something is entered in it.

    It seems as if it just adds another space with the query as E in the name. It doesn't filter out the row. Please tell me if I am doing something wrong. Thank you!
    Attached Files Attached Files

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Adding a column that nullifies cells when something is entered in it.

    Here you go - I've removed your attempt at the filter and added a new one at the end. Is it what you want?

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Adding a column that nullifies cells when something is entered in it.

    On reflection, I think I may have got the wrong end of the stick - apologies!

  11. #11
    Registered User
    Join Date
    07-05-2022
    Location
    USA
    MS-Off Ver
    2016
    Posts
    36

    Re: Adding a column that nullifies cells when something is entered in it.

    No worries- yeah it seems that it doesn't filter all the way through when I type an E in there. Ideally the dates would be nullified or even disappear from the query. Let me know if that makes sense! Thank you.

  12. #12
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Adding a column that nullifies cells when something is entered in it.

    You should have just copied and pasted the entire code (though I should have highlighted the change in the next row too really!). Your version ignored the filtered rows step in the next step. See attached.
    Attached Files Attached Files

  13. #13
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Adding a column that nullifies cells when something is entered in it.

    just for fun a bit shorter M

    Please Login or Register  to view this content.

+ 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] Auto copy value entered in e.g B1 to all B column cells where A cell is identical to A1?
    By Scepticseeker in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-30-2018, 07:53 PM
  2. Replies: 33
    Last Post: 01-19-2018, 03:53 PM
  3. Programing a column so all numbers entered in column cells will be negative
    By clintrobbins in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-28-2017, 10:14 PM
  4. [SOLVED] if data is entered in column A, column B should have date automatically entered.
    By exceltriumph in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-30-2016, 12:02 PM
  5. Comparing cells in a column and adding result of comparison in cells of adjacent column
    By Lionel welshboy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-19-2013, 05:37 AM
  6. Replies: 3
    Last Post: 05-12-2010, 11:58 AM
  7. [SOLVED] to number a specified column of cells according to a value I've entered
    By swordswinger710 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-27-2008, 09:39 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