+ Reply to Thread
Results 1 to 14 of 14

Add a row if ID match and Data validation

  1. #1
    Registered User
    Join Date
    07-01-2023
    Location
    Europe
    MS-Off Ver
    office 365
    Posts
    32

    Add a row if ID match and Data validation

    I have tried to use sum and match functions, but it is adding the whole range instead of the matched row. I have also added data validation using a custom formula to deter using text on a cell, but it does not seem to work.
    Attached Files Attached Files
    Last edited by Micfree1; 08-22-2023 at 01:36 PM.

  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,553

    Re: Add a row if ID matchs and Data validation

    Given you have 365, you can use
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copied down
    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
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,418

    Re: Add a row if ID matchs and Data validation

    In B2 copied down:

    =SUMPRODUCT((August!A$4:A$8=A2)*August!$D$4:$EZ$8)
    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.

  4. #4
    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,553

    Re: Add a row if ID matchs and Data validation

    As you mention BYROW, maybe
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    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,553

    Re: Add a row if ID matchs and Data validation

    Similarly, with Ali's solution:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    07-01-2023
    Location
    Europe
    MS-Off Ver
    office 365
    Posts
    32

    Re: Add a row if ID matchs and Data validation

    Thank Ali and TMS. All solutions work.
    Could you look into data validation custom formula please? I do not know why data validation formula does not work

  7. #7
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,418

    Re: Add a row if ID matchs and Data validation

    Do you need it really???

    Which column is it?

  8. #8
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,418

    Re: Add a row if ID matchs and Data validation

    DV for A4 should be this, surely?

    =ISNUMBER(A4)

  9. #9
    Registered User
    Join Date
    07-01-2023
    Location
    Europe
    MS-Off Ver
    office 365
    Posts
    32

    Re: Add a row if ID matchs and Data validation

    Hi Ali,
    Basically users will add holiday days for each day. Data should be strictly numbers only, but we know people do not adhere to it. So, data entry in each cell has to be numbers. Tab August- the same range as August!$D$4:$EZ$8

  10. #10
    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,553

    Re: Add a row if ID matchs and Data validation

    Choose the entire range, D4:EZ8. Under Data Validation, choose Decimal and pick a lower and upper limit. I guess maximum 0 to 24? It will say you have a mix of validation and ask if you want to clear it. Yes, you do.

  11. #11
    Registered User
    Join Date
    07-01-2023
    Location
    Europe
    MS-Off Ver
    office 365
    Posts
    32

    Re: Add a row if ID matchs and Data validation

    Thanks TMS! It is a great idea. Will it take 0.5?

  12. #12
    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,553

    Re: Add a row if ID matchs and Data validation

    That's a decimal, right?

  13. #13
    Registered User
    Join Date
    07-01-2023
    Location
    Europe
    MS-Off Ver
    office 365
    Posts
    32

    Re: Add a row if ID matchs and Data validation

    TMS, of course it is. I was looking at the whole number and never crossed my mind that i can use decimals. Thanks again!

  14. #14
    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,553

    Re: Add a row if ID matchs and Data validation

    You're welcome. Thanks for the rep.


    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. Search Table to find exact matchs, then pull data from corresponding cell
    By Lubby in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-21-2016, 08:36 PM
  2. [SOLVED] Sumif name in range of columns matchs.
    By JasonNeedsHelp in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-20-2016, 07:17 PM
  3. Vlookup multiple matchs
    By Phill Palmer in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-22-2013, 07:14 AM
  4. iserror and match help matchs and no matchs?
    By sabml in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-26-2012, 11:40 AM
  5. Select a set of data that matchs a range then input said data into a new column SOS
    By joshnathan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-04-2012, 07:46 PM
  6. Remove data if it matchs data from another sheet.
    By Kenekio in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-19-2011, 05:12 AM
  7. Finding the matchs in columns A,B,C and gives output in D & E
    By shekar goud in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 10-06-2009, 01: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