+ Reply to Thread
Results 1 to 9 of 9

macro to validate data

  1. #1
    Forum Contributor
    Join Date
    11-17-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    365

    macro to validate data

    I want macro to check few validation and correct data as mentioned below.

    1) Serial number in column A Should be end of the data. If not Show popup “Serial number incomplete”
    2) Trim and data in rows and columns from Row number 2 to till end of the data range
    3) All the character should be converted to capital letters
    4) There should not be any duplicate member. If there is duplicate member show popup “There is Duplicate member in Data” (validation to find duplicate is Name, DOB and Gender) and end macro.
    5) The Family code mentioned against each Self to be unique. If one family code is mentioned against more than one Self then Show popup “There is duplicate family code” and end macro.
    6) Data in Column E under “RELATION1” to be blank, If there is any data show popup that “Relation is already prescribed” and exit macro.
    7) There should be value against each self in column I, J, K, L, M, N, and O. If any cell blank Show popup stating “Value under (Column heading) is blank.
    8) Once Data in Column E Deleted and completely clean Need Macro for below mentioned task
    a. Copy Relation “SELF” from Column “D” to Column “E”
    b. If Relation is “Employee” in Column “D” then Copy Relation as “SELF” to Column “E”
    c. Now Count number of children in one family with the help of family code in column B. Accordingly mention relation as Child1, Child2, Child3, Child4 and so on in Column E. For example refer employee code “10000522” there are 3 child in family hence in E, Mentioned as Child1, Child2 and Child3.
    Attached Files Attached Files

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: macro to validate data

    Hi, this is not helping out, this is asking for someone to write an application for you.
    Have you tried the paid section of this forum?
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Contributor
    Join Date
    11-17-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    365

    Re: macro to validate data

    No I haven't tried.

    This is I am just doing as an voluntary activity for maintaining Covid infected people as a free service to keep records of their hospital admission medicine etc.
    And I can not pay for this.

    If anyone is ready to help then ok. Otherwise Kindly ignore.

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: macro to validate data

    I didn't mean to be rude about it but this is something that requires a little more that a tip and some help to point you in the right direction.
    'I want macro ...' well I think that there are many that want something.
    How is you knowledge of macro's and programming with VBA? If it's zero then It won't do you much good since you also need to maintain it and maybe even correct of modify something.
    I've downloaded your file and the 'request', will have to red it to see if I fully understand your query.

  5. #5
    Registered User
    Join Date
    05-14-2021
    Location
    India
    MS-Off Ver
    Office 10
    Posts
    18

    Re: macro to validate data

    I can maintain it once it is done by anyone.

  6. #6
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: macro to validate data

    I took a look but you would not really need macro's you could use conditional formatting to mark the empty cells that need to be filled.
    The XYZ at the end of the names, where does that come from, I assume that the XYZ will stand for something else

  7. #7
    Registered User
    Join Date
    05-14-2021
    Location
    India
    MS-Off Ver
    Office 10
    Posts
    18

    Re: macro to validate data

    you can ignore XYZ. that is just sample data

    Can you give mean example of conditional formatting.

  8. #8
    Registered User
    Join Date
    04-19-2021
    Location
    Dublin, Ireland
    MS-Off Ver
    O365, Win10 and Mac
    Posts
    47

    Re: macro to validate data

    I have a data entry system called Dexel Form which may be of some use to you. I wrote it as a generic data entry system but it also has a data validation component and will highlight those records which do not comply with the rules you specify. I wrote it for Office 365 but it may work on your version of Office. I didn't fully understand all the validations you listed but I have implemented some of them in the attached sample file. If you download and install the addin from dexelform.com you can try it out.
    Attached Files Attached Files

  9. #9
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: macro to validate data

    Hi @Corbett, sounds good will take a look, that graet about this forum, we all share and learn from others and get new ideas
    @sravaan2021: some links to lear to work with conditional formtting
    https://trumpexcel.com/excel-conditional-formatting/
    https://careerfoundry.com/en/blog/da...d...%20More%20
    and if you Googel there's much more.

+ 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] Macro to validate need change
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-15-2014, 01:23 PM
  2. [SOLVED] Macro to Validate data in Column B based on Column A
    By Lawliet in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-03-2013, 11:05 AM
  3. Macro with condition of Period, before run, macro should validate the date and Path of fil
    By caapoorvajain in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-17-2012, 04:11 AM
  4. Macro to Validate existing data.
    By cbhawsar in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-16-2011, 10:26 AM
  5. Validate two fields when one field you need a formula to validate
    By cmwilbur in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-29-2010, 11:32 AM
  6. Validate data before executing calculation macro
    By hermithead in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-27-2010, 03:40 AM
  7. macro or validate?
    By olga6542 in forum Excel General
    Replies: 1
    Last Post: 01-08-2010, 08:36 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