Automatically translated.View original post

Take COUNTIF, COUNTIFS

2025/8/17 Edited to

... Read moreหลายคนถามกันบ่อยว่า COUNTIFS ใช้ยังไง (ต่างจาก COUNTIF ยังไง) เราสรุปแบบที่เราใช้ทำงานจริงให้เลย โดยยึดตัวอย่างตารางแนว ๆ นี้: NAME | GENDER | AGE | DEPARTMENT 1) COUNTIF vs COUNTIFS ต่างกันตรงไหน - COUNTIF: นับ “เงื่อนไขเดียว” เช่น นับจำนวนคนในแผนก Sales - COUNTIFS: นับ “หลายเงื่อนไขพร้อมกัน” เช่น นับ “ผู้หญิง” ที่อยู่ “Sales” และ “อายุ 40+” 2) ตัวอย่าง COUNTIF (เงื่อนไขเดียว) - นับจำนวนคนในแผนก Sales =COUNTIF(D:D,"Sales") ถ้าคอลัมน์ D คือ DEPARTMENT ก็จะนับทุกแถวที่เป็น Sales - นับจำนวนเพศหญิง =COUNTIF(B:B,"Female") ถ้าคอลัมน์ B คือ GENDER 3) ตัวอย่าง COUNTIFS (หลายเงื่อนไข) - นับ “ผู้ชาย” ในแผนก Marketing =COUNTIFS(B:B,"Male",D:D,"Marketing") อ่านง่าย ๆ คือ นับแถวที่ (GENDER=Male) และ (DEPARTMENT=Marketing) - นับ “ผู้หญิงอายุ 40+” (เงื่อนไขตัวเลข) =COUNTIFS(B:B,"Female",C:C,">=40") จุดสำคัญคือเงื่อนไขตัวเลขต้องใส่ในเครื่องหมายคำพูด เช่น ">=40" - นับ “ผู้หญิงอายุ 40+” และอยู่ Sales =COUNTIFS(B:B,"Female",C:C,">=40",D:D,"Sales") อันนี้ใช้บ่อยมากเวลาต้องสรุปจำนวนคนตามเพศ/ช่วงอายุ/แผนก 4) นับตาม “ช่วงอายุ” แบบที่ทำรายงานบ่อย สมมติอยากได้ช่วง 21-25, 26-30, 31-35, 36-40, 41-45, 46-50 ตัวอย่างนับช่วง 21-25: =COUNTIFS(C:C,">=21",C:C,"<=25") และถ้าอยากระบุเพศหรือแผนกเพิ่มก็ใส่ต่อท้ายได้ เช่น นับ “Male” อายุ 31-35: =COUNTIFS(B:B,"Male",C:C,">=31",C:C,"<=35") 5) ทริคที่เจอแล้วพลาดบ่อย (แก้ให้จบ) - ถ้าอายุเป็น “ข้อความ” (เช่นนำเข้าจากไฟล์แล้วชิดซ้าย) สูตรอาจนับไม่ตรง ให้แปลงเป็นตัวเลขก่อน (เช่น Data > Text to Columns หรือคูณ 1) - ถ้าเงื่อนไขเป็นข้อความ ต้องตรงสะกด/เว้นวรรค เช่น "Sales" กับ "Sales " ผลจะต่างกัน - ถ้าต้องอ้างอิงค่าจากเซลล์ เช่น เซลล์ F1 เป็นคำว่า Sales ให้เขียน =COUNTIFS(D:D,F1) และถ้าเป็นเงื่อนไขตัวเลขร่วมกับเซลล์ เช่น F2 เป็น 40 ให้เขียน =COUNTIFS(C:C,">="&F2) 6) ไอเดียทำตารางสรุปเร็ว ๆ ถ้าทำสรุปเป็นตาราง เช่น แถวเป็นช่วงอายุ คอลัมน์เป็นเพศ ก็ใช้ COUNTIFS เติมตามช่องได้เลย (เหมือนทำ Pivot แบบ manual) เหมาะมากเวลาต้องคุมรูปแบบรายงาน ลองเริ่มจาก 2-3 เงื่อนไขก่อน (เพศ+แผนก หรือ เพศ+ช่วงอายุ) แล้วค่อยเพิ่มเงื่อนไขอื่น ๆ จะเข้าใจ COUNTIFS ไวขึ้นมาก

Related posts

sweet tooth but make it COUNT
y’all this was so good like it’s gone take the whole neighborhood to get me off this cake 🍰 eating healthy does NOTTTT have to be boring!?!?!! #sweetdeals #weightlosstipsandtricks #healthylifestyle #healthyrecipes #lemon8cakes INSTRUCTIONS: mix ALL of the 4 ingredients pictured *no o
thejadahway

thejadahway

6916 likes

A list of 11 categories for a vision board, including wealth, career, health, learning, spirituality, family, fitness, relationships, personal development, affirmations, and home.
A list of 15 questions to ask when creating a vision board, covering personal, family, career, relationship goals, happiness, and life priorities.
A collage with text 'productive era 2026,' 'God first,' and images of luxury, travel, and self-improvement, emphasizing discipline and a blessed life.
Let’s make 2026 count, vision board ideas
#make a vision board ☺️ #vision board #embracevulnerability #shareyourthoughts #2026
tonyiaRochelle💛💚🧡

tonyiaRochelle💛💚🧡

45 likes

📚 🎧Do audiobooks count as reading?Here’s my take 👇
I saw a heated debate on this topic , and tbh… I get both sides 👀 BUT—if I listened from start to finish, felt the story, understood the plot, and can discuss it like any reader would…Yes, I read it. #lemon8bookclub #audiobooks #bookishthoughts #readingdebate #storygraphreads
Read With Riyah📚🎧

Read With Riyah📚🎧

26 likes

The book cover for "Bodycount" by Netra Antoinette, featuring an illustration of a woman in a white crop top and skirt, standing before a wall covered in sticky notes. The title and author are prominently displayed, with a Lemon8 logo.
A dark image with an olive green section, displaying the quote "She didn't have to. Her body did." followed by three sleepy face emojis. A Lemon8 logo is visible at the bottom.
A dark image featuring the quote: "That man sounds like chaos," she said. "But it also sounds like, for once, someone put you first—even if it meant becoming someone you didn't recognize." Four crying face emojis are below, with a Lemon8 logo.
Body Count by Netra Antoinette(Must Read)
[Warning: Sis if you’re in a vulnerable state, please don't read this right now] This is my first and won't be the last Netra Antoinette novel. When I tell you she didn't disappoint, I mean that with my soul, definitely put her foot in this one. This book moved me in ways that I didn
Cassidy R.

Cassidy R.

1 like

If it’s pink, count me in🌸
Item: All your cool Tshirt needs courtesy of Etsy
Candence

Candence

695 likes

A black and white image of a calendar or planner with the phrase 'Get Money' handwritten in the boxes for Monday, Wednesday, Friday, Thursday, and Saturday, emphasizing a daily focus on financial goals.
Manifest Your Hustle: Make Every Day Count! 🔑ℹ️⬇️
When your daily agenda is all about growth, success follows. Let this calendar be your reminder: every day is a new opportunity to get money and elevate your life. Who This is For: • Entrepreneurs seeking daily motivation. • Individuals looking to boost their financial mind
RoadToRiches

RoadToRiches

7 likes

Come count my savings with me 🥰🥰🥰
I been asked a lot if I could give you guys a number amount of how my I saved so far on my journey to save $10,000. So I took all the money out my savings binder, this is what my stack looks like and I’m gonna separate this in sections and give you guys the updated balance 😁 stay tuned and thanks f
Brokiieeee 💕

Brokiieeee 💕

768 likes

Easy Ways to Increase Your Daily Step Count👟📱🦮
Walking more each day is one of the easiest ways to stay active, burn calories, and improve overall health. But let’s be honest—sometimes it’s hard to hit your step goal, especially if you have a busy schedule or spend a lot of time sitting. That’s why I’ve put together nine creative and practic
Chalie_Baker

Chalie_Baker

595 likes

The first slide introduces the 'LAB BASICS SERIES' on 'UNDERSTANDING YOUR CBC BLOOD TEST,' featuring two blood sample tubes and Dr. Yuri Choi's name.
This slide defines a CBC as a blood test examining blood cells, providing clues about the immune system, red blood cells, platelets, infection, inflammation, and overall health.
This slide explains why doctors frequently check CBCs, listing symptoms it helps evaluate: fatigue, shortness of breath, dizziness, easy bruising, frequent infections, and inflammation.
👩🏻‍⚕️Let’s Read Your Labs: CBC (Complete Blood Count)🩸
CBC is one of the most common blood tests we check in medicine 😀 It can give clues about: • infection • anemia • inflammation • immune health • overall blood health 🌿 But ONE abnormal number alone usually doesn’t tell the whole story. YOUR symptoms, history, medications, stress, sleep
Dr. Yuri Choi

Dr. Yuri Choi

119 likes

💙 Silent battles still count.
💙 Silent battles still count. The fight nobody sees is still a fight. Keep going. Keep breathing. Keep healing. 🔗 https://codeofascension.com/how-to-reset-your-nervous-system-in-5-minutes/ #MentalHealthAwareness #HealingJourney #AnxietySupport #SelfCare #CodeOfAscension
Code of Ascension

Code of Ascension

0 likes

Two covered wagons are shown under a cloudy sky with a rainbow arching over distant hills. The text overlay reads 'Wagon tour time? Let's go!'
The exterior of a covered wagon with steps leading to its wooden door. In the foreground, a stone fire pit with flames is visible. The text overlay says 'Let's go inside'.
The interior of a glamping wagon features a king-sized bed with a wooden headboard, nightstands, and a patterned rug. Arrows point to a bathroom entrance and an air conditioning unit.
Sleep over in a covered wagon?? Count me in!
⭐️ Rating: 10/10 Zion White Bison Glamping + RV Resort #glampinglife #glampinggoals #glampingtent #glamping #roomtour
Zionwbr

Zionwbr

201 likes

Coffee DOES NOT COUNT AS BREAKFAST! 😑
Under-eating is actually slowing your metabolism, draining your energy, and making fat loss harder. Fuel your body right and watch the results come. #womensfitness #losefatgainmuscle #tonedbody #dietplan #fatlosscoach #caloriecountingdiet #fatlosshelp #busywomen #fatlossforwomen
Lillid4fit

Lillid4fit

1171 likes

Count these blessing🤠
#countrymusic
Sydney🖤

Sydney🖤

3 likes

A white background with black text titled "Notes". It discusses how media normalizes casual sex and hookup culture but doesn't mention risks like bacterial imbalance, toxic energies, or soul ties from multiple partners.
A white background with black text titled "Notes". It explains how sex creates emotional bonding through hormones like oxytocin and dopamine, and how sleeping with a dysregulated person can lead to absorbing their lifestyle and emotional environment.
A white background with black text discussing spiritual consequences of sexual sin, the reality of energy, spirits, and demonic influences. It also questions the difficulty of maintaining a faithful marriage after a high body count, mentioning discipline and responsibility.
20 body count- 20 Spirits, 20 energies. 20 divorce
If you sleep with someone who is: * Depressed * Chaotic * Addicted * Emotionally unstable You may start feeling off — not because a demon transferred — but because: * You bonded to someone dysregulated. * You absorbed their lifestyle and emotional environment. * You ignored red flags. * Yo
Let’s be real

Let’s be real

4 likes

A woman with her eyes closed and finger on her lips, making a 'shush' gesture. Text overlay reads 'How To Actually Boost your impressions On Lemon8' and 'lemon8 @itschelsieirl'.
A woman with braided hair sitting on a bench in front of artwork. A yellow overlay shows 'Chels @itschelsieirl' with statistics: 94.7K Impressions, 765 Likes & Saves, and 16 Followers.
A woman with braided hair sitting on a bench in front of artwork. A yellow overlay shows 'Chels @itschelsieirl' with statistics: 111K Impressions, 875 Likes & Saves, and 31 Followers.
Want To Boost 🍋8 Impression Count?
I have less than 200 followers on Lemon8 and I’ve already pulled in over 200K impressions under 3 months. This app doesn’t care about your follower count — it cares about your content, your timing, and how people engage. If you’ve been posting and not seeing results, I’ve got you. These are the
Chels ☀️

Chels ☀️

22 likes

✨ You’ve got this — now go make today count!
🌟 Good Morning & Happy Tuesday, Friends! 🌟 Ever wake up feeling tired, overwhelmed, or unsure where to start? 😩 Sometimes life piles up so high that it feels easier to freeze than to move forward. But here’s your reminder: do it anyway. 💪 Even when you don’t feel like it. Even when it’s h
ajbaum10

ajbaum10

6 likes

3 ways to increase your daily step count
As mentioned before, walking outdoors is like the ultimate holistic medicine for ADHD. Being that ADHDers are quite visual and often require structure + outside reward to accomplish tasks, it only makes sense to track your daily steps, to have your walks scheduled AND to try and take your walks
April Sky

April Sky

2 likes

Almost Doesn’t Count
Dreams fulfilled will always be just within your reach but never come to fruition 🌈 as long as you think partying can be apart of your life. #teacher #ambition #dreams #Lemon8 #fypシ
Danielle the Starseed

Danielle the Starseed

1 like

Dark & lovely count your days
POV: the “popping pink” was anything but popping 😭💇🏽‍♀️ I originally dyed my hair using Dark & Lovely’s Popping Pink expecting a vibrant, bold pink moment… and let’s just say the box gave very false hope. On my dark brown hair, the color barely showed up the way it was advertised, and if I
Tiara J | Lifestyle

Tiara J | Lifestyle

10 likes

Step Count 🌸
Simple Ways to Sneak More Steps Into Your Day (Without Feeling Like a Workout) 🚗 Park farther on purpose – That back row of the parking lot? It's your secret weapon. 🔁 Take the long way – Whether it’s walking to the bathroom or heading to the kitchen, make it a mini detour. 📞 Pace duri
Liz

Liz

2 likes

An image featuring the text 'how to RAISE follower count' in white, bold letters, overlaid on a scene of a cloudy beach or boardwalk area with people and cars. The background shows the ocean, dunes, and a wooden walkway, while the foreground includes a parking lot.
How to raise followers count
(i got no clue) i need some help boosting my follower count. i always follow back and engage with my followers. if you’re into hot takes, cute things, ect, let's connect! #FollowBack #FollowForFollow #BoostFollowers #SocialMediaGrowth #ConnectWithMe #howtogetfollowers
♡heykittyhey♡

♡heykittyhey♡

2 likes

🔥 Fight fans, don’t count it out just yet!
The highly anticipated showdown between Mike Tyson and Floyd Mayweather may not have an official date locked in, but don’t get it twisted — Iron Mike says the fight is STILL happening! 👀🥊 Even without a confirmed schedule, Tyson is making it clear the bout is far from dead. If this clash of lege
Brewed Up

Brewed Up

3 likes

Search & count winter sensory table!
Went to the dollar store to see what might be left of the winter/holiday items and came out with a handful of goodies and a new sensory table idea! I haven’t put lights in my boys table yet so I figured I would give it a try! One thing I would have done different is buy maybe a bag or two more of p
Mariana • sahm

Mariana • sahm

18 likes

Does Takedow count as paranormal romance?
Does Takedow count as paranormal romance? #paranormalromance #booktok
Whispersoft

Whispersoft

7 likes

The simple things count ✨🪼
Venerable moment: - Sometimes I don’t feel real, and I have to bring myself back to earth. I wake up and I’m hopeful that the day will work out for the best. - I don’t have children but I have two animals who sometimes drives me crazy. I love them unconditionally, and I feel guilty that I ha
Destinee 💕

Destinee 💕

3 likes

1, 2, 3 count with me | Toddler Learning🧠
Teaching your toddler to count can be a fun & engaging experience. Here are some tips to help your toddler start counting: 1️⃣Make it part of daily routines: Count objects during daily activities, like steps, toys, or snacks. For example, count the stairs as you go up or down, or the number
Dania Toddler Mom & UGC

Dania Toddler Mom & UGC

116 likes

The Count of Monte Cristo
Today I start my journey! This book has been all over my TikTok! It is time! #booktok #thecountofmontecristo
Jennifer Yun

Jennifer Yun

3 likes

Do period struggles count as a valid need?
The other day on the subway, I noticed a priority seat sitting empty. Normally, I’d never touch it since it’s for seniors, pregnant people, or people with obvious disabilities. But that day, my period cramps were agonizing. Sweat was dripping down my back and I could barely keep it together. I trie
Millie✨

Millie✨

94 likes

3 Things that do not count as a passion project
3 Things that do not count as a passion project ❌ Learning a new instrument or language: 🎸 While these are awesome skills to acquire, they may not necessarily be considered passion projects. A passion project usually involves a specific mission that serves your community! ❌ Unpublished artist
Ivy League Help

Ivy League Help

52 likes

Small Steps 🪜Still Count
Some days look loud and productive. Other days look quiet and gentle. Both matter. If today only allowed you one small step, let that be enough. Progress doesn’t have to shout to be real 🤍 What’s one small thing you did for yourself today? #SmallSteps #GentleMotivation #Minds
Allistar Banks

Allistar Banks

16 likes

The back of a gold Cartier watch with a brown leather strap, featuring an engraving that reads 'FUCK'EM IF THEY CAN'T TAKE A JOKE'. The watch also has a black cabochon crown.
F*ck Them If They Can’t Take a Joke
– Time to Make a Statement This bold message isn’t just on any accessory—it’s engraved on the back of a Cartier watch. Cartier, a brand synonymous with luxury and timeless elegance, has a rich history of crafting exquisite timepieces that make bold statements. Spiritual Insight: “Time is a c
RoadToRiches

RoadToRiches

4 likes

AUDIOBOOKS? DO THEY COUNT?
I think audiobooks should count to reading goals, but I get the point made where there is technically nothing “read”. It is important to know that books are for EVERYONE and some people cannot sit down and read or focus for long periods of times. That’s the sole reason I think it counts! Wh
STEFANI♥️

STEFANI♥️

0 likes

Jayda says s*x dont count under 3 or condom used
Jayda says s*x doesn’t count as a body if it lasts under three minutes or if a con*om was used
Knowshowmedia

Knowshowmedia

1 like

A handwritten letter from a child named Boog to their Mama, expressing deep gratitude and love for her support, sacrifices, and being the best mom. The letter is written in black ink on light paper and includes a Lemon8 watermark with the username @bstarlenas.
Count your blessings!
Motherhood can be challenging. I don't like to use the word hard, because nothing is hard for me about being a mother. However, I definitely come across challenges. As I'm sure all mothers do. Sometimes, we feel defeated and wonder if we are raising our children in the "right" way.
bstarlenas

bstarlenas

3 likes

Small steps still count 🖤
You don’t need a perfect plan to begin. You just need the courage to start small. Tiny steps still change your future ✨ Save this if you’re starting over (or again). #LuckilyCharmed #WitchyMotivation #SoftLifeEnergy #AbundanceMindset #GentleGoals
Luckily Charmed

Luckily Charmed

3 likes

A mountainous landscape with green hills and a blue sky, featuring the pink text "FAITH MOVES MOUNTAINS." The Lemon8 watermark is visible in the bottom left corner.
A serene mountain lake reflecting the sky and peaks, overlaid with the Bible verse James 1:2-4 about counting trials as joy. The Lemon8 watermark is in the bottom left.
A mountain range with pine trees and a field of flowers, displaying the Bible verse Romans 5:3-5 about suffering producing endurance and hope. The Lemon8 watermark is present.
𝑪𝒐𝒖𝒏𝒕 𝒊𝒕 𝒂𝒍𝒍 𝒋𝒐𝒚..
7/24/24 Dear Lemon8, Quick story if you have time, you may need to hear this during YOUR time of suffering 🫶🏻 🏔️🏔️🏔️🏔️🏔️🏔️🏔️🏔️🏔️🏔️🏔️🏔️🏔️🏔️🏔️🏔️ So, these past few weeks I’ve been feeling attacked by satan and his minions. • I am a Christian • I read God’s Word Daily • I pray • Ju
ˢ ᵗ ᵃ ᶜ ᵉ ʸ

ˢ ᵗ ᵃ ᶜ ᵉ ʸ

34 likes

Small Steps Still Count
Not every season calls for giant leaps — sometimes, it’s about showing up just a little bit more than yesterday. 🌱 Progress doesn’t always look loud or fast. It often whispers in quiet effort, soft beginnings, and the courage to simply begin. So take one small, steady step today. That’s eno
Shamanflora

Shamanflora

8 likes

See more