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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
littlepatos
Helper II
Helper II

Calculate time data into groups

I have a spreadsheet with data in column J for time shown as 05 for 5 min and 60 for 60 minutes. I want to show the data as: 

05 or less "Less than 5"

5-10 "5 to 10"

im using IF Statement buts not working as expected. Any suggestions please?
=IF($J2>=0,$J2<=5),"Leas than 5", IF(AND($J2>5,$J2>=10)"5 to 10","")) 

 

TimeHours & MinutesMinutesMinjutes as ValuesTime Spent

0:05:3200:05055Over 40
1:00:1801:006060Over 40
0:25:4200:252561Over 40
1:00:1201:006062Over 40
0:51:0500:515163Over 40
0:22:5000:222264Over 40
1 ACCEPTED SOLUTION

hi @littlepatos 

 

it seems your I column is text instead of number, try the following:

=IF(AND(VALUE($I2)>=0,VALUE($I2)<=5),"Leas than 5", IF(AND(VALUE($I2)>5, VALUE($I2)<=10),"5 to 10",""))

 

FreemanZ_0-1675565575898.png

 

p.s. consider @some to continue a discussion.

View solution in original post

4 REPLIES 4
littlepatos
Helper II
Helper II

@FreemanZ this worked- thank you so much!

FreemanZ
Community Champion
Community Champion

hi @littlepatos 

try like:

=IF(AND($J2>=0,$J2<=5),"Leas than 5", IF(AND($J2>5, $J2<=10),"5 to 10","")) 

Hi @FreemanZ unfortunately it didn't work. Column L is where I would expect to see values.

littlepatos_0-1675482557290.png

 

hi @littlepatos 

 

it seems your I column is text instead of number, try the following:

=IF(AND(VALUE($I2)>=0,VALUE($I2)<=5),"Leas than 5", IF(AND(VALUE($I2)>5, VALUE($I2)<=10),"5 to 10",""))

 

FreemanZ_0-1675565575898.png

 

p.s. consider @some to continue a discussion.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.