Mail Merge By Grouping, Table Function to Insert Total of Column Value Multiple Records on Same Page

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ก.ย. 2024
  • If you're looking to quickly and easily insert total of column value multiple records on the same page using Mail Merge, then this video is for you. In this tutorial, I'll be walking you through the steps to take in order to use the Table Function to quickly and easily insert a total of column value multiple records on the same page.
    I'll cover the basics of Mail Merge and how to use the Table Function to make it so that multiple records can be inserted on the same page.
    You'll be learning how to use the Table Function to complete the Mail Merge and make it easier to insert a total of column value multiple records on the same page. I'll be giving step-by-step instructions that you can follow along with and I'll be providing visual aids to help you understand the process. I'll also be discussing how the Table Function can be used in other applications.
    This video will take you through the process of setting up the Mail Merge and how to use the Table Function to insert a total of column value multiple records on the same page. I'll be providing tips and tricks to make the process easier and more efficient. I'll also be discussing how to troubleshoot any issues that you might encounter.
    By the end of this video, you'll be able to use the Table Function to insert a total of column value multiple records on the same page using Mail Merge. So, if you're interested in learning how to use the Table Function to quickly and easily insert a total of column value multiple records on the same page using Mail Merge, then this video is for you.
    If you are new to my channel, please subscribe and press the bell icon too.
    Thank you for watching!
    🅻🅸🅺🅴----🆂🅷🅰🆁🅴-----🅲🅾🅼🅼🅴🅽🆃------🆂🆄🅱🆂🅲🆁🅸🅱🅴
    Featured playlist.
    • MailMerge
    Visit my other Videos too:
    Power BI Full Tutorial 2023:
    • Power BI Full Tutorial...
    Power Query:
    • Power Query
    3D formula:
    • 3 D Formulas
    Alt-Enter:
    • Alt Enter
    Aggregate and Subtotal:
    • Aggregate and Subtotal
    Logic Function:
    • Logical Functions
    Excel Worksheet links:
    • Exce WorkSheets links
    Mail Merge:
    • MailMerge
    Dilemma:
    • Dilemma
    Excel tips and tricks:
    • Excel Short Tips and T...
    Questions on Categorical Syllogism:
    • Questions on Categoric...
    Information Systems Basic:
    • Information System Basics
    This Video address one of the common task at workplace. It is using Mail Merge feature of MS Word with Excel file in such a way that Mail Merge generates pages by grouping, means multiple records on same page based on a particular field value and it also shows how column values be added at run time.
    Change IF Function shown in the video with the the following, that will take care of single line record
    =IF(B2=B3,1,IF(COUNTIF($B$2:$B$14,B2)=1,2,0))
    #MailMerge
    #MSWord
    #MultipleRecordOnSamePage

ความคิดเห็น • 105

  • @garyrowe58
    @garyrowe58 8 หลายเดือนก่อน +3

    Thank you so much, I saw so many convoluted and confusing videos before I found this, and now I understand what I need to do ... at last!!!!

  • @roylopez6892
    @roylopez6892 8 หลายเดือนก่อน

    Thank you very much for this video, I've been looking for this solution for months, and this helps me a lot.

  • @annacarlson439
    @annacarlson439 ปีที่แล้ว

    This was a lifesaver! I was able to get it to work perfectly the first time. The second time, it was showing multiple documents for one any person with multiple lines of data when previewed, but when I finished the merge, it was exactly as it should be, with one document for each person, containing all of their data. Thank you!!!

  • @tayyab1234598
    @tayyab1234598 2 ปีที่แล้ว

    Great video, it is going to save me hours of work.

  • @ahsanullah3757
    @ahsanullah3757 2 ปีที่แล้ว

    Thank you sir for helping us more power to you and do share more videos from basic level to advance bcz we want to learn it💕

  • @IntelligentInvestors.
    @IntelligentInvestors. 2 ปีที่แล้ว +2

    Can you kindly explain the Bookmark, (you have used SET ID1) I am getting an Error! Bookmark not defined

  • @clubbinbricky
    @clubbinbricky 10 หลายเดือนก่อน +1

    I'm having an issue where when I run my merge the first one is correct but before it moves to next customer it displays the same customer but with one record missing and so on until there are none left then it moves onto next customer. Do you know what's wrong in this case?

  • @leezaRainboeveins
    @leezaRainboeveins 2 ปีที่แล้ว +6

    I replicated the steps and found the same issue as other people commented :
    a) 1 customer with multiple rows (2 lines) will produce 3 separate documents after "finish&merge" (edit individual documents).

    • @georgiananeata4199
      @georgiananeata4199 3 หลายเดือนก่อน

      Did you find a solution for this?

  • @thuynganguyen9856
    @thuynganguyen9856 ปีที่แล้ว +1

    Can anyone help to explain bookmark " SET ID1"? How can i find name of this bookmark? I try to input this but it failed😢

  • @jarosawuczkiewicz9060
    @jarosawuczkiewicz9060 ปีที่แล้ว

    And what to do If number of rows belonging to category that we want to display is unknown (vary from 1 to 100)

  • @velasquezlyranicolem.5634
    @velasquezlyranicolem.5634 2 ปีที่แล้ว +1

    Hello, we followed your steps but our data has different amount of invoices, one customer have 4 while others can have up to 18, what should we do to leave the remaining rows blank

    • @agalal8989
      @agalal8989 2 ปีที่แล้ว

      Did you solve your issue? I am having the same problem

  • @syedfaz26
    @syedfaz26 2 ปีที่แล้ว

    AOA, How are you getting {MERGEFIELD}? Iam getting when i select Insert Merge Field and then select my field name.
    Thanks

    • @pkgoodfriend
      @pkgoodfriend 25 วันที่ผ่านมา

      Press ctl f9

  • @gr8moodi
    @gr8moodi 2 ปีที่แล้ว

    Sir , what if family records. father and his 8 or 10 members

  • @nickw9626
    @nickw9626 ปีที่แล้ว +4

    THANK YOU SO MUCH! This solved my problem. Note to people having issues with Word creating multiple recipients and just removing a row each time... The error shows up in the preview but not in the final merge

  • @monaalsayed787
    @monaalsayed787 10 หลายเดือนก่อน

    Can someone assist me with this, please? I have tried it on the data that was exactly represented it he table but when I tried it in my data, it didn't work!! Does anyone have any idea what could be wrong?

    • @mdsouza1903
      @mdsouza1903 8 หลายเดือนก่อน

      Tell me where exactly it is not working for you..I will guide if possible

  • @mubarakkb5357
    @mubarakkb5357 ปีที่แล้ว +3

    Hi, how to determine the number of rows as in my case it is varying for each and every recipient and also how to remove the blank rows ? let me know.please

  • @drakemyers3432
    @drakemyers3432 ปีที่แล้ว +5

    Great video, there are alot of other videos making it complicated trying to use directories and what not. Question - would it be possible so the number of rows in the table itself dynamically updates with the number of invoices? So if Rick only has 2 invoices, the table he gets would only have two rows (and doesn't have the extra blank ones which you needed to include for the people that have 3).

    • @Iwhomustnotbenamed
      @Iwhomustnotbenamed ปีที่แล้ว +1

      Need answer for this please

    • @monaalsayed787
      @monaalsayed787 10 หลายเดือนก่อน

      search something that says dynamic table or resized table. I have seen it on TH-cam before, but it is a bit complicated. (involved VBA)

  • @sridevi-ge1tg
    @sridevi-ge1tg 3 หลายเดือนก่อน

    Thank you so much for the Video. I have added the { =Sum(Above)} .But it is not adding the numbers,it is displayed as it is in the mail merge document.What might be the issue

  • @anooshkhan3999
    @anooshkhan3999 2 ปีที่แล้ว +5

    Great Sir, really a practical example reduces a lot of time and effort

  • @prashanthkumar7666
    @prashanthkumar7666 10 หลายเดือนก่อน +1

    Hell Sir,
    I replicated the steps and found that it repeats the last line on the same page again before going on to the next customer. how to avoid this?
    Thank you!!!

  • @happyoom
    @happyoom ปีที่แล้ว +1

    Why I filed code "SET" ID and insert filed on code the code is loss? It's not appear on table except condition "Next IF". I using MS office365.

  • @sharifulislam7441
    @sharifulislam7441 5 หลายเดือนก่อน

    What if last row that VICK is deleted and so only one record is for VICK? In that case this formula will definitely fail though real world data might be so.

  • @jamesd20101
    @jamesd20101 2 ปีที่แล้ว +1

    Great overview, thank you Khurram. Iteration in mail merge is very difficult. Can you clarify whether there is a way to remove unused rows for a particular ID? I have two source data tables that I am merging from Access, one Projects, the other Line Items. Each Project may have n Line Items. My question is how to handle the uneven nature of the rows - e.g., some Project records have only 1 line items while others may have more than 10. I'd like to show only the rows of data and not have empty rows. Appreciated!

  • @siddheshjadhav6612
    @siddheshjadhav6612 ปีที่แล้ว +1

    Excellent vdo, every word is worthy and non useless

  • @PavolMalinovský
    @PavolMalinovský 9 หลายเดือนก่อน

    Hello Mr. Hkurram Khan,
    I am not able to reproduce your tutorial. I am not able to correctly evaluate if the ID1 and ID2 are the same or not. The result of comparison is wrong (ID1 = ID2) even if it is not true. This way the word do not list next records (with test =1). -> I have changed the logic of if function -(> if ID1=ID2, insert merged fiield, "") and I am getting the next records (solved), but the next record if (test =0) does not work and is listing last record repeatadly. Please do you have any Idea, what am I doing wrong? thank you. Pavol

  • @lien355
    @lien355 2 หลายเดือนก่อน

    Sir, does it work for mail merge tool kit too?

  • @aegedariggins9761
    @aegedariggins9761 ปีที่แล้ว +1

    I've been looking for this information for months. Thank you so much for making this easy!

  • @sharonlim2895
    @sharonlim2895 6 หลายเดือนก่อน

    Thanks for video, instruction is clear. I used it to merge over 1K docs. Some letters created had blank on some rows, others look good. What could be the problem?

  • @frightrisk7407
    @frightrisk7407 9 หลายเดือนก่อน

    Is there any way to avoid having to use a "helper"column? Surely there must be a way to check if the last record field and the field in the record after are different and proceed that way.

  • @jaysee27
    @jaysee27 7 หลายเดือนก่อน

    Finally!!!😁. A video that shows and clearly explains this type of process; and it actually works! Thank You!!!!
    There is so much info on this topic online but I couldn't find a process that actually explains and shows it this clearly and works. I had actually given up on this process as an option. After all these years, you would think MS would have come up with this function as part of the standard Mail Merge. Thank you again.

  • @tree2681
    @tree2681 ปีที่แล้ว

    I followed every step and when I Alt F9 to see the values of ID 1 and ID 2, it is blank. What am I doing wrong?

  • @ckd_28
    @ckd_28 ปีที่แล้ว

    Only one issue, if one customer have 2 and another have 50 invoices then Excel table should be dynamic and not manual as you have done

  • @judygasarowski4281
    @judygasarowski4281 2 ปีที่แล้ว +1

    Hello Sir -
    Thank you for your help.
    I merge does what I want, combining lines and a total on one page, however, it repeats the last line on the next page again before going on to the next customer.
    I have the 1,0 text column set to =IF(K2=K3,1,0)
    Here is the code in my table:
    column 1 {IF ID1 = ID2 "" "{ MERGEFIELD Title }"}
    column 2 {IF ID1 = ID2 "" "{ MERGEFIELD Fee }"}
    column 3 { SET ID1 "{ MERGEFIELD Title }" }{ NEXTIF { MERGEFIELD Test } = 1 }{ SET ID2 "{MERGEFIELD Title}" }
    The results show the first page with one customer and all the titles and fees listed. However, the second page is the same customer with the last title and fee repeated. Then the 3rd page goes on to the next customer. Single line customers work fine. Customers with multiple lines repeat only the last line on the next page.
    I think this is similar to other questions here but I'm not sure a solution was posted yet.
    Your help is greatly appreciated!

    • @Jchoueiri
      @Jchoueiri ปีที่แล้ว +1

      Hi Judy, I am facing the same issue, have you found a solution and would you share it with me? thanks

    • @vaishnavisugumar9208
      @vaishnavisugumar9208 8 หลายเดือนก่อน

      Hello,
      I am also facing the same issue.Would like to know the solution . Could you please tell me

    • @jemmaaquino1264
      @jemmaaquino1264 24 วันที่ผ่านมา

      @@vaishnavisugumar9208 have you found solution?

  • @__Est.her__
    @__Est.her__ 2 ปีที่แล้ว

    Hey I did this and it works greak...However I'm having an issue in which the people with multiple items show up twice, one page with the correct information and another with only one record. Could you please help?

  • @shoshanadjaker3722
    @shoshanadjaker3722 2 ปีที่แล้ว +2

    many thanks for this great video! instructions were super clear and easy to follow! my only issue is that for some reason the customer name gets reprinted on the following record.. for example, if a customer has 2 invoices number, the first page will be perfect - showing the 2 invoices and associated amount ; but the following page will be for the same customer and the second invoice.. any advise on how to fix it? i followed your video to the dot.. many thanks in advance

    • @KhurramKhanExcelLogic
      @KhurramKhanExcelLogic  2 ปีที่แล้ว

      Thanks for watching,
      You can see, we prepare data for Mail Merge.
      What I understand, you refer the following scenario.
      Two different customers with same names. In that case we assign some code to customers that uniquely identify the customer record and then group records based on this code and proceed as shown in video after grouping.
      I hope that helps.

    • @dennisaikens1292
      @dennisaikens1292 2 ปีที่แล้ว +2

      @@KhurramKhanExcelLogic I'm not sure that's what they mean. I have a similar problem.
      My data set includes the person's name, their ID number, a course name, a course code, and a due date for each name. The first document for each name has all of the correct information. However, let's say John Doe has 4 courses to his name. After the 1st page, each subsequent page will included one less course name until it gets to only one course. Then a new page will start with the next name and so on and so forth.
      If I group the records by name, what code would I use for that? Set ID1 and ID2 as the person's name? [Edit:] Tried that and it made a sheet for each course name.

    • @luisportillo5502
      @luisportillo5502 2 ปีที่แล้ว +4

      @@dennisaikens1292 @khurramKhan
      I am getting a similar issue. Has this been resolved? If I have 4 records for one person the first sheet works and shows 4 records. My second email (mail merge) will be for the same person and it will show 3 records and the following page will show 2 records for the same person. Is there a way to make it so you only see the first 4 records with duplicating the next sheets? Please help....

    • @bhishanwadhai6670
      @bhishanwadhai6670 2 ปีที่แล้ว +1

      Hi, Have you got the solution for this.

    • @Jchoueiri
      @Jchoueiri ปีที่แล้ว

      @@bhishanwadhai6670 Same issue here

  • @soumyachoudha10
    @soumyachoudha10 ปีที่แล้ว

    Sir, data in my table format needs to filled vertically (instead horizontally), can you pls help how can I do?

  • @alzibob
    @alzibob 2 ปีที่แล้ว

    The rule is not working for me at the 13minute part of the video, it returns the same value for each ID. Any ideas?

  • @DarshitValia
    @DarshitValia 4 หลายเดือนก่อน

    Just came across this great tutorial and used it on my data table. However, I had a question. The Test column has a 1 or 0 based on the start and stop on the group. What happens if there is a SINGLE ENTRY? The TEST column basically inputs a 0.
    It would be great if you could help me out on this.

    • @lakshmikulkarni9605
      @lakshmikulkarni9605 28 วันที่ผ่านมา

      did you find a solution for this? I have the same question

  • @freddyhindriks2668
    @freddyhindriks2668 2 ปีที่แล้ว +1

    Thanks for your example. I almost got it to work. The only thing that doesnt work for me is that when i merge multiple rows in a table, the next "result" will be the same receipment with one less row in the table. Dont know what i'm doing wrong.

    • @y12sr_dsm
      @y12sr_dsm ปีที่แล้ว

      This is happening to me as well. What was the solution?

    • @cdrosero
      @cdrosero ปีที่แล้ว +1

      @@y12sr_dsm that happened to me when I preview the data, It worked as intended when I Finished the Merge.

  • @karlabruce2871
    @karlabruce2871 7 หลายเดือนก่อน

    Thank you thank you! This is exactly what I needed. Thank you for such a detailed explanation!

  • @javalearner4227
    @javalearner4227 7 หลายเดือนก่อน

    Keep creating new videos!! Thanks explained well without any distractions.

  • @fritzschuck6474
    @fritzschuck6474 ปีที่แล้ว

    Hi sir... Can I share my file with you? And help me with the solution plsss 🙏🏻🙏🏻🙏🏻 the name repeats 😭

    • @KhurramKhanExcelLogic
      @KhurramKhanExcelLogic  ปีที่แล้ว

      If you have followed same steps it should not be the case. Don't preview just finished Mail Merge, Names should not be repeated

  • @kamalkishore6462
    @kamalkishore6462 ปีที่แล้ว

    Error bookmark not defined showing in last coulmn

  • @kabukidanshi7874
    @kabukidanshi7874 2 ปีที่แล้ว +1

    Thank you so much!! It was really easy to understand!

  • @muhammadahmad7030
    @muhammadahmad7030 ปีที่แล้ว

    Sir apki academy kahan hai.physical class attend krsakty hain kia

  • @arsalanahmed1789
    @arsalanahmed1789 ปีที่แล้ว

    Sir file bh cloud me kahi upload krdya karen please

  • @linotaffoni2820
    @linotaffoni2820 ปีที่แล้ว

    Can i have these file? Doc and xls thank you

  • @atthershabbir
    @atthershabbir 2 ปีที่แล้ว +1

    I tried but this method don't work if single line data is present .. I mean this method will work for 2 or more group sets only.. 😭

    • @KhurramKhanExcelLogic
      @KhurramKhanExcelLogic  2 ปีที่แล้ว

      Try following formula in Test Column, this should work for single line data
      =IF(B2=B3,1,IF(COUNTIF($B$2:$B$13,B2)=1,1,0))

    • @atthershabbir
      @atthershabbir 2 ปีที่แล้ว

      @@KhurramKhanExcelLogic Thanks for your reply sir, but i tried this method, marking single row data with Test as "1" but it did not work.., still waiting for resolution.

    • @KhurramKhanExcelLogic
      @KhurramKhanExcelLogic  2 ปีที่แล้ว +1

      I will look into and respond

    • @masterof8ballpool442
      @masterof8ballpool442 2 ปีที่แล้ว +1

      Check solution of the issue you mentioned in the video description, change IF Function accordingly and you are done.

    • @fritzschuck6474
      @fritzschuck6474 2 ปีที่แล้ว

      Hi sir... I have the same prob... Will the if statement change in the table in the document?

  • @vijaytiwari4024
    @vijaytiwari4024 ปีที่แล้ว

    It is keep printing the last record of entry is more than 3 our case, Sir

    • @KhurramKhanExcelLogic
      @KhurramKhanExcelLogic  10 หลายเดือนก่อน

      Please watch it again and follow steps, it won't repeat last record number of times

  • @michaelstobierski5155
    @michaelstobierski5155 ปีที่แล้ว

    Outstanding Tutorial! Thank you.

  • @leisuretime77
    @leisuretime77 ปีที่แล้ว

    Thank you so much sir..

  • @agalal8989
    @agalal8989 2 ปีที่แล้ว

    Hi. I tried this. But the last record for each name keeps repeating

    • @KhurramKhanExcelLogic
      @KhurramKhanExcelLogic  2 ปีที่แล้ว

      Do not Preview, It behave differently. Instead use Finish Mail Merge with Edit Individual Option. You will get the desired result

  • @stevenlylaw7667
    @stevenlylaw7667 10 หลายเดือนก่อน

    Excellent

  • @kamrankarsaz8952
    @kamrankarsaz8952 2 หลายเดือนก่อน

    thank you

  • @clazo683
    @clazo683 ปีที่แล้ว

    Thank you !! very helpful!

  • @anihorner2885
    @anihorner2885 2 ปีที่แล้ว

    Thank you kindly! What if I have more than 3 invoices for each customer? How to avoid repeating the code on each row?

    • @KhurramKhanExcelLogic
      @KhurramKhanExcelLogic  2 ปีที่แล้ว

      Hi, say you have 10 invoices, and you set word document for 15 rows, you need to copy paste same code in word document in 15 rows. This will generate 10 invoices on same page and rest will be blank. This is how it works.

    • @Jkaur1212
      @Jkaur1212 2 ปีที่แล้ว

      @@KhurramKhanExcelLogic Hi Sir, I am trying like if 2 records I'd is same with different values in other columns so for row1, its working fine however for 2nd row with 0, it's showing blank and thn again showing row 2 value in row3

    • @Jkaur1212
      @Jkaur1212 2 ปีที่แล้ว

      @@KhurramKhanExcelLogic Also mail merge document is made for every row instead at Customer level document. Please help

  • @shabbirkhan7396
    @shabbirkhan7396 2 ปีที่แล้ว

    Google sheet me kaise karte hai

  • @IanisRenier
    @IanisRenier 7 หลายเดือนก่อน

    merci le boss !

  • @linotaffoni2820
    @linotaffoni2820 ปีที่แล้ว

    bookmark error

  • @Ninja_Pug_Official
    @Ninja_Pug_Official ปีที่แล้ว

    Thank you Khurram!

  • @mayankagarwal920
    @mayankagarwal920 ปีที่แล้ว

    Sir, CAN I HAVE YOUR CONTACT DETAIL

  • @bhishanwadhai6670
    @bhishanwadhai6670 2 ปีที่แล้ว

    Great one. Really it would be helpful.

  • @rajabali1071
    @rajabali1071 2 ปีที่แล้ว

    ❤️

  • @andreimazilu7585
    @andreimazilu7585 ปีที่แล้ว

    Thank you so much!

  • @skippiescheepers7131
    @skippiescheepers7131 ปีที่แล้ว

    This is tedious for 50 records, very easy for 5 or 6. not a suitable solution. Thanks

  • @hirdayanandgupta5119
    @hirdayanandgupta5119 2 ปีที่แล้ว

    Thank you sir, It worked with little issues.