Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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
Great questions, here’s a clear and practical answer.
Best regards,
Akhil.
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 (⋮) → More → Export Chat → Without 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
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
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.
@MayAnk__Rathi
I've extracted the structured data from your WhatsApp messages and organized it into an Excel file with headers like Size/Model, Machine Type, Features, Pantograph, Condition, Rate, 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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
49 | |
32 | |
27 | |
27 | |
27 |
User | Count |
---|---|
61 | |
56 | |
34 | |
29 | |
28 |