Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
MayAnk__Rathi
Helper I
Helper I

Auto populate whatsapp messages in excel

I have received daily around 2000+ whatsapp messages in some pre-defined format gor enquiry about some machines. I want to get these messages in excel under proper header automatically. How to do this.


Some of messages which I received is below.

Message Format-1

 

15/400 - 1

 TRIPAL SARVO MA 650

  ALTAR MA TWINS   

  SIQVANSH+CODING 

  1350 PENTOGRAPH 

  BHAV :- 625/-

_________

15/400 - 1 TENG

9 NIDAL MA

TRIPAL SARVO MA 

CODING+SIQVANSH 

1350 PENTOGRAPH 

BHAV :- 650/-

_________              

15/400 - 1 KTL

  TRIPAL SARVO MA 

  CODING+SIQVANSH 

   MA (WHITE PATIYA)

  BHAV :- 500/-

_________

18/400 - 1 KTL(JOINT)

 SIGAL SARVO MA CODING+SIQVANSH MA 

(WHITE PATIYA)

BHAV :- 330/-

 

Message Format-2

ARJANT VESHVA NA SE

_________

15/400 - 2
(BLU - PATIYA)

 TRIPAL SARVO MA 

 600 ALTAR MA TWIN 

SIQVANSH+CODING 

1350 PENTOGRAPH 

SUPAR CANDISHAN MA

BHAV :- 675+675

_________

15/400 - 1

 SIGAL SARVO MA 

 600 ALTAR MA TWIN SIQVANSH+CODING 

1350 PENTOGRAPH MA

BHAV :- 575/-

________

11/400 - 1 SOHAM

 SIGAL SARVO MA

TWIN SIQVANSH+

CODING SUPAR CANDISHAN MA 

BHAV :- 350/-

 

Message Format-2

Jay shree Shyam 

25x250. 1 mc 9 needle 

KTL YUME 

400x400 Bheem 

Smart cutter 

With Twins 

Double Gutka

Pantograph 1550

Modal. 2017 

Top condition 

Rate. 1100000

15x400. 2.  Mc. Sheen Tripal servo 

Multi full service

Pantograph 1250

 Kiya hua top condition 

Rate. 4.50000

27x250. 1. Mc. Yomi  Avira 

Triple Servo 

Multi

Pantograph 1250

Rate. 7.51000

Dalali milega 

Rajesh bhai

9328948860

 

Message Format-3

27/250/500/1425

Avira empex 

Coding siqunce 1200 rpm

2 machine.

9+9 lakh

32/250/50/1450

Coding siqunce Unix 2 machine 10+10 lakh

15/400/800/1300

Teng coding siqunce 

625+625. Sell

Manoj mishra

9979657381

 

Message Format-4

Har har Mahadev 

24*250 zenex 1 MC 

Tipal sarvo malti 528 computer 1350 pantograph 400*400 body bhav 750

24*250 alliance 1 MC 

Tipal sarvo champion sequence high speed double gutka double liver 300*400 body 1350 Pentograf bhav 850

30*200 livotri 2 MC 

Tipal sarvo malti 

1350 pentograf 

Bhav 750

31/200 alliance 2 MC 

Tipal sarvo malti 

High speed double gutka double liver 1350 pantograph 2017 model 

Bhav 750 

Sell sell party ka mc hai 

8320030096

5 REPLIES 5
v-agajavelly
Community Support
Community Support

Hi @MayAnk__Rathi 

Great questions, here’s a clear and practical answer.

  1. If you're receiving messages from multiple groups and individuals, yes, manually exporting each chat daily would be very difficult. WhatsApp doesn't allow bulk exports or access to all chats automatically unless you use a complex setup like the WhatsApp Business API. which is not ideal for your use case.
  2. Yes, you can use Power Automate to get WhatsApp messages into Excel, but you’ll first need a way to collect those messages in one place. A common approach is to use a mobile automation app (like AutoResponder, AutoForward, or Tasker) to auto-forward all incoming WhatsApp messages to your email. Then, Power Automate can:
    • Pick up those messages from your email
    • Extract required info (Size, Machine, Rate, etc.)
    • Automatically write it into Excel

Best regards,
Akhil.

v-agajavelly
Community Support
Community Support

Hi @MayAnk__Rathi 

Thanks for the follow-up.
Since you're receiving 2000+ WhatsApp messages daily in a semi-structured format, here's a simple and 100%
working solution to automatically extract and populate them into Excel.

Export WhatsApp Chat (Daily). On your phone, open the WhatsApp chat → tap the 3 dots (⋮) → MoreExport ChatWithout Media → Email it to yourself or save it to Google Drive. You'll get a .txt file with all the messages.

Run This Python Script to Auto-Fill Excel

  • Save your exported .txt file as whatsapp_messages.txt
  • Use this script (you can run it with basic Python setup):
import re, pandas as pd

with open("whatsapp_messages.txt", "r", encoding="utf-8") as f:

    raw = f.read()
messages = re.split(r'_+\n|\n\n', raw)

data = []
for msg in messages:

    size = re.search(r'(\d+[x/]\d+)', msg)

    pantograph = re.search(r'(\d{3,4})\s*PENTO?GRAPH', msg, re.I)

    rate = re.search(r'BHAV\s*[:-]\s*([^\n]+)', msg, re.I)

    contact = re.search(r'\b\d{10}\b', msg)
        data.append({

        "Message": msg.strip(),

        "Size/Model": size.group(1) if size else "",

        "Pantograph": pantograph.group(1) if pantograph else "",

        "Rate": rate.group(1) if rate else "",

        "Contact": contact.group(0) if contact else ""})

pd.DataFrame(data).to_excel("Daily_WhatsApp_Enquiries.xlsx", index=False)

Try to automate It

  • You can schedule this script to run automatically every day using Windows Task Scheduler or any automation tool.
  • Or just run it after saving the .txt file daily—takes only a few seconds.

This will give you a clean Excel file with columns like:
Message | Size/Model | Pantograph | Rate | Contact
Let me know if you'd prefer a solution using Google Sheets or Power Automate instead. Happy to help further.

----------------------------------------------------------------------------------------------------------------------------
If my response was helpful, consider clicking "Accept as Solution" and give us "Kudos" so that other community members can find it easily. Let me know if you need any more assistance.

Best regards,
Akhil 😊

 

There are my 2 queryies in your reply.
1) I received these type of whatsapp messages from different groups & also from Individuals, so it will be very difficult to export each chat.
2) Is this possible to get whatsapp messages automatically in excel with thge help of Power Automate, if yes, I will prefer that & how to please tell me.

johnbasha33
Super User
Super User

@MayAnk__Rathi 

I've extracted the structured data from your WhatsApp messages and organized it into an Excel file with headers like Size/ModelMachine TypeFeaturesPantographConditionRate, and Contact.


attached the excel

Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!



How will I do it automatically as I have received these type of 2000+ messages on daily basis.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.