Hello,
I am looking for a function that will show in B2:
when the value in A1 is below 24, it shows the value in A1
when the value in A1 is between 24 and 48, it shows the value (A1-24)
when the value in A1 is over 48, it shows the value (A1-48)
Hello,
I am looking for a function that will show in B2:
when the value in A1 is below 24, it shows the value in A1
when the value in A1 is between 24 and 48, it shows the value (A1-24)
when the value in A1 is over 48, it shows the value (A1-48)
Try this:
=IF(A1<24,A1,IF(A1>48,A1-48,A1-24))
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
NB: as a Moderator, I never accept friendship requests.
Forum Rules (updated August 2023): please read them here.
Try:Formula:
Please Login or Register to view this content.
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
Thank you again
Glad to have helped.
If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.
Not clear what you want to see if the value is exact 24 or 48 maybe this wil work :
![]()
Please Login or Register to view this content.
Willem
English is not my native language sorry for errors
Please correct me if I'm completely wrong
Hello, Thank you
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks