Please fix this formula

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,860
Office Version
  1. 365
Platform
  1. Windows
<TABLE style="WIDTH: 337pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=449 border=0 x:str><COLGROUP><COL style="WIDTH: 337pt; mso-width-source: userset; mso-width-alt: 16420" width=449><TBODY><TR style="HEIGHT: 18pt" height=24><TD class=xl24 dir=ltr style="BORDER-RIGHT: lightgrey 0.5pt solid; BORDER-TOP: lightgrey 0.5pt solid; BORDER-LEFT: lightgrey 0.5pt solid; WIDTH: 337pt; BORDER-BOTTOM: lightgrey 0.5pt solid; HEIGHT: 18pt; BACKGROUND-COLOR: white" width=449 height=24 x:str="'=IF(U2,{"Jury Duty","Waiting","Personal Absence","military","Absence"},{"other"},U2)">=IF(U2,{"Jury Duty","Waiting","Personal Absence","military","Absence"},{"other"},U2)</TD></TR></TBODY></TABLE>

Thanks
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
What do you want it to do? In what way does it need fixing?
 
Upvote 0
Try...

Code:
=IF(OR(U2="Jury Duty,U2="Waiting",U2="Personal Absence,U2="military",U2="Absence"),"other",U2)

:)
 
Upvote 0
To make your original formula work you need to make some minor changes to it:
=IF(U2={"Jury Duty","Waiting","Personal Absence","military","Absence"},"Other",U2)
And then CSE (Control + Shift + Enter) it!!
 
Upvote 0
To do it the way you originally tried you'd need to do:

=IF(U2={"Jury Duty","Waiting","Personal Absence","military","Absence"},"True","False")
 
Upvote 0
To make your original formula work you need to make some minor changes to it:
=IF(U2={"Jury Duty","Waiting","Personal Absence","military","Absence"},"Other",U2)
And then CSE (Control + Shift + Enter) it!!

Beaten to it! Out of interest is the CSE always needed because I can enter a formula like that normally and it seems to work OK?
 
Upvote 0
Beaten to it! Out of interest is the CSE always needed because I can enter a formula like that normally and it seems to work OK?

If you read Aladin's comments, he says try not to use CSE, even though it works like magic, but for long spreadsheet like the one I have 50,000 rows, it slows down very considerably.
 
Upvote 0

Forum statistics

Threads
1,224,503
Messages
6,179,136
Members
452,890
Latest member
Nikhil Ramesh

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