Home » » IFS for creating buckets in a new column in excel

IFS for creating buckets in a new column in excel

IFS for creating buckets in a new column in excel

The IFS function is a logical function in Excel that allows you to check multiple conditions and return a value that corresponds to the first true condition. You can use the IFS function to create buckets or categories based on different criteria in a new column in Excel. In this article, I will show you how to use the IFS function for creating buckets in a new column in Excel with three examples.

Example 1: Creating buckets based on overdue days

Suppose you have a dataset of different reports with the dates issued and the due dates, as shown below. You want to create a new column that categorizes the reports into four buckets based on the number of overdue days: 1-30 days, 31-60 days, 61-90 days, and more than 90 days.

To create the buckets, you can use the following formula in cell F5 and copy it down to the rest of the cells:

=IFS (E5<=30,"1-30 Days",E5<=60,"31-60 Days",E5<=90,"61-90 Days",TRUE,">90 Days")

This formula checks the value in cell E5 and compares it with four conditions:

  • If E5 is less than or equal to 30, it returns “1-30 Days”.
  • If E5 is less than or equal to 60, it returns “31-60 Days”.
  • If E5 is less than or equal to 90, it returns “61-90 Days”.
  • If none of the above conditions are true, it returns “>90 Days”.

The result is shown below:

Example 2: Creating buckets based on number of days worked

Suppose you have a dataset of different employees with their names and the number of days they worked in a month, as shown below. You want to create a new column that categorizes the employees into three buckets based on the number of days worked: Less than 15 days, 15-25 days, and More than 25 days.

To create the buckets, you can use the following formula in cell C5 and copy it down to the rest of the cells:

=IFS (B5<15,"Less than 15 days",B5<=25,"15-25 days",TRUE,"More than 25 days")

This formula checks the value in cell B5 and compares it with three conditions:

  • If B5 is less than 15, it returns “Less than 15 days”.
  • If B5 is less than or equal to 25, it returns “15-25 days”.
  • If none of the above conditions are true, it returns “More than 25 days”.

The result is shown below:

![Dataset of employees with buckets based on number of days worked]

Example 3: Creating buckets based on expiration days

Suppose you have a dataset of different products with their names and expiration dates, as shown below. You want to create a new column that categorizes the products into four buckets based on the number of expiration days from today: Expired, Expiring soon (within 7 days), Expiring later (within 30 days), and Not expiring (more than 30 days).

![Dataset of products with names and expiration dates]

To create the buckets, you can use the following formula in cell C5 and copy it down to the rest of the cells:

=IFS (B5<TODAY(),"Expired",B5-TODAY()<=7,"Expiring soon",B5-TODAY()<=30,"Expiring later",TRUE,"Not expiring")

This formula checks the value in cell B5 and compares it with four conditions:

  • If B5 is less than today’s date, it returns “Expired”.
  • If B5 minus today’s date is less than or equal to 7, it returns “Expiring soon”.
  • If B5 minus today’s date is less than or equal to 30, it returns “Expiring later”.
  • If none of the above conditions are true, it returns “Not expiring”.

The result is shown below:

![Dataset of products with buckets based on expiration days]

Conclusion

The IFS function is a useful tool for creating buckets or categories based on different criteria in a new column in Excel. You can nest multiple conditions within the IFS function and return a value that corresponds to the first true condition. However, you should be careful not to use too many nested conditions, as it can make your formula difficult to read and maintain. You can also use other functions, such as VLOOKUP or SWITCH, to create buckets in Excel.

0 মন্তব্য(গুলি):

একটি মন্তব্য পোস্ট করুন

Comment below if you have any questions

অফিস/বেসিক কম্পিউটার কোর্স

এম.এস. ওয়ার্ড
এম.এস. এক্সেল
এম.এস. পাওয়ার পয়েন্ট
বাংলা টাইপিং, ইংরেজি টাইপিং
ই-মেইল ও ইন্টারনেট

মেয়াদ: ২ মাস (সপ্তাহে ৪দিন)
রবি+সোম+মঙ্গল+বুধবার

কোর্স ফি: ৪,০০০/-

গ্রাফিক ডিজাইন কোর্স

এডোব ফটোশপ
এডোব ইলাস্ট্রেটর

মেয়াদ: ৩ মাস (সপ্তাহে ২দিন)
শুক্র+শনিবার

কোর্স ফি: ৮,৫০০/-

ওয়েব ডিজাইন কোর্স

এইচটিএমএল ৫
সিএসএস ৩

মেয়াদ: ৩ মাস (সপ্তাহে ২দিন)
শুক্র+শনিবার

কোর্স ফি: ৮,৫০০/-

ভিডিও এডিটিং কোর্স

এডোব প্রিমিয়ার প্রো

মেয়াদ: ৩ মাস (সপ্তাহে ২দিন)
শুক্র+শনিবার

কোর্স ফি: ৯,৫০০/-

ডিজিটাল মার্কেটিং কোর্স

ফেসবুক, ইউটিউব, ইনস্টাগ্রাম, এসইও, গুগল এডস, ইমেইল মার্কেটিং

মেয়াদ: ৩ মাস (সপ্তাহে ২দিন)
শুক্র+শনিবার

কোর্স ফি: ১২,৫০০/-

অ্যাডভান্সড এক্সেল

ভি-লুকআপ, এইচ-লুকআপ, অ্যাডভান্সড ফাংশনসহ অনেক কিছু...

মেয়াদ: ২ মাস (সপ্তাহে ২দিন)
শুক্র+শনিবার

কোর্স ফি: ৬,৫০০/-

ক্লাস টাইম

সকাল থেকে দুপুর

১ম ব্যাচ: সকাল ০৮:০০-০৯:৩০

২য় ব্যাচ: সকাল ০৯:৩০-১১:০০

৩য় ব্যাচ: সকাল ১১:০০-১২:৩০

৪র্থ ব্যাচ: দুপুর ১২:৩০-০২:০০

বিকাল থেকে রাত

৫ম ব্যাচ: বিকাল ০৪:০০-০৫:৩০

৬ষ্ঠ ব্যাচ: বিকাল ০৫:৩০-০৭:০০

৭ম ব্যাচ: সন্ধ্যা ০৭:০০-০৮:৩০

৮ম ব্যাচ: রাত ০৮:৩০-১০:০০

যোগাযোগ:

আলআমিন কম্পিউটার প্রশিক্ষণ কেন্দ্র

৭৯৬, পশ্চিম কাজীপাড়া বাসস্ট্যান্ড,

[মেট্রোরেলের ২৮৮ নং পিলারের পশ্চিম পাশে]

কাজীপাড়া, মিরপুর, ঢাকা-১২১৬

মোবাইল: 01785 474 006

ইমেইল: alamincomputer1216@gmail.com

ফেসবুক: facebook.com/ac01785474006

ব্লগ: alamincomputertc.blogspot.com

Contact form

নাম

ইমেল *

বার্তা *