Convert a Sum into a Word

Danster2

New Member
Joined
May 11, 2011
Messages
1
I am trying to convert a sum into words eg: U2-AB2 which results in -1 it refers to an appointment being completed and the -1 means its been completed Late. How do I then turn this sum into the word LATE,EARLY or ONTIME.:eeek::confused:
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Hello & Welcome to the Board...

Something like this...

=LOOKUP(SIGN(U2-AB2),{-1,0,1},{"LATE","EARLY","ONTIME"})

You may have to adjust based on your actual requirements
 
Upvote 0
Hi,

Welcome to the board. Try:

=IF(A11<0,"Late",IF(A11>0,"Early","On Time"))

Where A2 is your SUM result.
 
Upvote 0
Welcome to the board!

You have 3 condtions. What are the respective results for each condition?

Obviously, we have -1 for late

Can I assume it's 0 for on time and 1 for early?

If so

=lookup(U2-AB2,{-1,0,1},{"Late","On Time","Early"})
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,909
Members
452,949
Latest member
beartooth91

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top