# Match verification row by row but the structure always change

Hi ,

I want to do some matching verification where i have this one excel files which contain a few of rows of information where this is a Application form that i converted it into excel files. The Application form here where i do some match verification with the value that i get from website and it will stamp the value Match or Unmatched to excel in another column.

As for my solution now , i do like this , where DBTest is a database from the excel files and strTest1 is a value that i get from website.

DBTest.Rows(1)(0).ToString.Contains(strTest1)

This the sample of application form from the excel files Thats why i need to read the rows number , but im not sure how to automate if let say this “Name/ MR Test ABC DOB/ 27 June 1993” is in maybe in second row / third row.

Is there any other ways to automate this other that read the row number instead.

Thanks

1 Like

Hey @user123mem

I got partially understood your query ?

So here you are trying to say - you have a string and you want to find the matching row number from the excel ?

Thanks
#nK

There are multiple ways to to do this.

1. Read the excel using a read range activity then assign it to DBTest (Datatable variable).Use For Each Row in Data Table to loop DBTest datatable while having a int variable as a counter which increments each time it loops.
In the If condition Use CurrentRow(“ColumnNumber”).toString.Contains(strTest1)
In the Write range set the range as “C” with the counter

2. Add use the above but instead of using write Cell just use CurrentRow(“ColumnNumber”) = “Name Unmatch” or vise versa. then write the data table to the excel sheat

Yes , Correct. But the problem is , this column doesnt have a header since this information here actually is a pdf form which converted into excel files. so the information ada data is dumped into one column.

Here is the example how my table excel looks like As you can see, in the first row already have a few information that i need to verify, Eg Name, DOB and also Age. and on another column is the Status column, where i will stamped the info here if matched.

1 Like

So basically you want to update the status column ?

no, i just to want to find if there is any other way to to match verification here if the row number for Name/ DOB /Age will be at row 5 or 6 . meaning the structure of the form is not fix.

As for my solution now, i read the row number to do some match “DBTest.Rows(1)(0).ToString.Contains(strTest1)”
so i just want to know is there any other way to find specifc word and compare it and stamp the value Match if found it.

1 Like

hi in this case , this column didnt have a Column name

Hey @user123mem

Yes, you can do that by looping through the rows

Thanks
#nK
{"ft_lang_label":"__label__en","ft_lang_prob":0.8782206,"math_prob":0.6145069,"size":2699,"snap":"2022-27-2022-33","text_gpt3_token_len":637,"char_repetition_ratio":0.116141,"word_repetition_ratio":0.0039525693,"special_character_ratio":0.23008522,"punctuation_ratio":0.07581227,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9685511,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,1,null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-08-18T15:56:31Z\",\"WARC-Record-ID\":\"<urn:uuid:bf50c74f-7e48-411f-a744-694063eb15d9>\",\"Content-Length\":\"62144\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:fa2ba319-4738-4ffd-9eb0-1b6a88e63e7b>\",\"WARC-Concurrent-To\":\"<urn:uuid:4a4d38fd-14e7-4eae-b474-cb55a2e704ea>\",\"WARC-IP-Address\":\"184.105.176.43\",\"WARC-Target-URI\":\"https://forum.uipath.com/t/match-verification-row-by-row-but-the-structure-always-change/452962\",\"WARC-Payload-Digest\":\"sha1:HWINYMDKPEYKSONH56CZ6NJM3EMLVI7V\",\"WARC-Block-Digest\":\"sha1:3GXMR4RZGUMIHPTCXKEURN5OEM6X66EA\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-33/CC-MAIN-2022-33_segments_1659882573242.55_warc_CC-MAIN-20220818154820-20220818184820-00084.warc.gz\"}"}