Checking a Cell for an *

Takron

New Member
Joined
May 12, 2011
Messages
12
I'm trying to come up with a formula to check a cell for an * to determine how to figure for a budget sheet.

I am trying to split bills in half between two parties but some of the bills are only for one of the parties so I want to put an * on those bills to skip the divide action so i don't have to write a function for every time we need to skip the divide by 2 action. I have included a pic of the sheet I'm making for reference. I am including a rough wording to help explain what I am trying to do but i don't know how to format it for excel.

If I6 contains "*" then 0+0 else J6/2

Imgur
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Maybe

Code:
=IF(I6=Char(42),0+0,J6/2)
 
Upvote 0
It works for me

Sheet3

*IJKLMN
5*23***11.5
6*65***65

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
N5=IF(I5="*",J5,J5/2)
N6=IF(I6="*",J6,J6/2)

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4

It does but I need that * to be detected in a cell with other words.
 
Upvote 0

Forum statistics

Threads
1,203,606
Messages
6,056,281
Members
444,854
Latest member
goethe168

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