Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jim
 
Posts: n/a
Default Trouble with a conditional statement

Hi everyone - hope someone can help.

I have a form made up for employees to use as a purchase order.

Depending on the type of purchase order, they are to put an X in either cell
F7, F8, or F9.

When the purchase order totals the page, it is then set to figure the
discount available, based on the type of order specified by the employee.

The formula I have entered is =IF(F7=X,J23*0.02,J23). What I want the
formula to do is look at cell F7. If the employee has entered an X in that
cell, the formula should then take the number in cell J23 and multipyy it by
..02. If cell F7 is empty, the formula should return the full value of cell
J23.

Excel says that it is looking for a #Name? on the logical test line of the
formula box.

What am I doing wrong?

Thanks
--
Jim
  #2   Report Post  
Ron Coderre
 
Posts: n/a
Default

The X in your formula need to be "X":
=IF(F7="X",J23*0.02,J23)

In quotes, Excel treats it as the letter X. Without quotes, Excel is
looking for a range named X.

Regards,
Ron

  #3   Report Post  
Jim
 
Posts: n/a
Default

Thanks Ron.

That fixed the problem. I knew it had to be something simple, but I sure
couldn't find the answer in the Help section.

Jim

"Ron Coderre" wrote:

The X in your formula need to be "X":
=IF(F7="X",J23*0.02,J23)

In quotes, Excel treats it as the letter X. Without quotes, Excel is
looking for a range named X.

Regards,
Ron

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IF Statement that's conditional on multiple IF Stmts in other cell Pat Excel Worksheet Functions 1 March 26th 05 10:31 PM
=IF Statement formula or conditional formatting Abi Excel Worksheet Functions 6 January 18th 05 01:06 PM
How do I write a conditional statement in Excel to count if two c. marblelife Excel Worksheet Functions 2 January 16th 05 11:16 PM
Conditional formatting based on if statement. kevin Excel Worksheet Functions 2 January 12th 05 03:07 AM
Conditional if statement Matt Stanley Excel Worksheet Functions 2 November 10th 04 04:47 AM


All times are GMT +1. The time now is 10:52 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"