#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 86
Default IF Function

I am trying to determine whether or not a sales amount is "In-State" or "Out
of State" for sales tax purposes. Spreadsheet example is below.

The formula I wrote for Column E is: =IF(a1=IL,d1,0)
The formula for Column F is: =IF(a1=IL,0,d1).
The return I get for each cell is #Name?. I have formatted the cells in
column a as text and the cells in columns D, E & F as numbers. The assistant
tells me that cell a1 (et al) is an invalid name. What gives? Can someone
please help? Thanks in advance.

A B C D E F

State Qty Desc Cost In-State Out-State

1 AL 1 Item 2 89.99
2 IL 1 Item 2 89.99
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default IF Function

Without looking at he rest of the problem, it look like you just need some
quotes
=IF(a1="IL",0,d1).

Without "IL", Excel is looking for a cell named IL
Textual arguments must always be in quotes.
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Jules" wrote in message
...
I am trying to determine whether or not a sales amount is "In-State" or
"Out
of State" for sales tax purposes. Spreadsheet example is below.

The formula I wrote for Column E is: =IF(a1=IL,d1,0)
The formula for Column F is: =IF(a1=IL,0,d1).
The return I get for each cell is #Name?. I have formatted the cells in
column a as text and the cells in columns D, E & F as numbers. The
assistant
tells me that cell a1 (et al) is an invalid name. What gives? Can
someone
please help? Thanks in advance.

A B C D E F

State Qty Desc Cost In-State Out-State

1 AL 1 Item 2 89.99
2 IL 1 Item 2 89.99



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default IF Function

Put double quotes around IL and it will work:

=IF(a1="IL",d1,0)


--
Biff
Microsoft Excel MVP


"Jules" wrote in message
...
I am trying to determine whether or not a sales amount is "In-State" or
"Out
of State" for sales tax purposes. Spreadsheet example is below.

The formula I wrote for Column E is: =IF(a1=IL,d1,0)
The formula for Column F is: =IF(a1=IL,0,d1).
The return I get for each cell is #Name?. I have formatted the cells in
column a as text and the cells in columns D, E & F as numbers. The
assistant
tells me that cell a1 (et al) is an invalid name. What gives? Can
someone
please help? Thanks in advance.

A B C D E F

State Qty Desc Cost In-State Out-State

1 AL 1 Item 2 89.99
2 IL 1 Item 2 89.99



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 86
Default IF Function

Thank you both for your response....You were exactly right. Thanks again!

"Jules" wrote:

I am trying to determine whether or not a sales amount is "In-State" or "Out
of State" for sales tax purposes. Spreadsheet example is below.

The formula I wrote for Column E is: =IF(a1=IL,d1,0)
The formula for Column F is: =IF(a1=IL,0,d1).
The return I get for each cell is #Name?. I have formatted the cells in
column a as text and the cells in columns D, E & F as numbers. The assistant
tells me that cell a1 (et al) is an invalid name. What gives? Can someone
please help? Thanks in advance.

A B C D E F

State Qty Desc Cost In-State Out-State

1 AL 1 Item 2 89.99
2 IL 1 Item 2 89.99

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default IF Function

You're welcome!

--
Biff
Microsoft Excel MVP


"Jules" wrote in message
...
Thank you both for your response....You were exactly right. Thanks again!

"Jules" wrote:

I am trying to determine whether or not a sales amount is "In-State" or
"Out
of State" for sales tax purposes. Spreadsheet example is below.

The formula I wrote for Column E is: =IF(a1=IL,d1,0)
The formula for Column F is: =IF(a1=IL,0,d1).
The return I get for each cell is #Name?. I have formatted the cells in
column a as text and the cells in columns D, E & F as numbers. The
assistant
tells me that cell a1 (et al) is an invalid name. What gives? Can
someone
please help? Thanks in advance.

A B C D E F

State Qty Desc Cost In-State Out-State

1 AL 1 Item 2 89.99
2 IL 1 Item 2 89.99



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
copy of excel file not showing formulal/function in the function b oaallam Excel Discussion (Misc queries) 4 September 6th 07 01:20 PM
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM
Emulate Index/Match combo function w/ VBA custom function Spencer Hutton Excel Worksheet Functions 2 May 2nd 05 05:26 PM
Nested IF Function, Date Comparing, and NetworkDays Function carl Excel Worksheet Functions 2 December 29th 04 09:57 PM


All times are GMT +1. The time now is 03:00 PM.

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

About Us

"It's about Microsoft Excel"