Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 271
Default can't find function error

I am trying to calculate a delivery date based on an vessel departure date on
my worksheet (K512) and the location (N512), adding a specific number of day
for each location. My formula is below, and I continue to get a #VALUE! error.

IF(N512="AR",SUM(K512+25)),"",IF(N512="CA",SUM(K51 2+15)),"",IF(N512="FL",SUM(K512+33)),"",IF(N512="I L",SUM(K512+25)),"",IF(N512="PA",SUM(K512+31))) )

I've spent 2 hours on this one formula - help please!
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default can't find function error

IF(N512="AR",SUM(K512+25),IF(N512="CA",SUM(K512+15 ),IF(N512="FL",SUM(K512+33),IF(N512="IL",SUM(K512+ 25),IF(N512="PA",SUM(K512+31),"")))))


"Susan" wrote:

I am trying to calculate a delivery date based on an vessel departure date on
my worksheet (K512) and the location (N512), adding a specific number of day
for each location. My formula is below, and I continue to get a #VALUE! error.

IF(N512="AR",SUM(K512+25)),"",IF(N512="CA",SUM(K51 2+15)),"",IF(N512="FL",SUM(K512+33)),"",IF(N512="I L",SUM(K512+25)),"",IF(N512="PA",SUM(K512+31))) )

I've spent 2 hours on this one formula - help please!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default can't find function error

Try this:

=IF(COUNTA(K512,N512)<2,"",K512+LOOKUP(N512,{"AR", "CA","FL","IL","PA"},{25,15,33,25,31}))

--
Biff
Microsoft Excel MVP


"Susan" wrote in message
...
I am trying to calculate a delivery date based on an vessel departure date
on
my worksheet (K512) and the location (N512), adding a specific number of
day
for each location. My formula is below, and I continue to get a #VALUE!
error.

IF(N512="AR",SUM(K512+25)),"",IF(N512="CA",SUM(K51 2+15)),"",IF(N512="FL",SUM(K512+33)),"",IF(N512="I L",SUM(K512+25)),"",IF(N512="PA",SUM(K512+31))) )

I've spent 2 hours on this one formula - help please!



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default can't find function error

I'm surprised that you get a #VALUE! error. I would have expected Excel to
tell you that the syntax is wrong, as you don't have your parentheses
matched.

You could have made like easier for yourself by omitting the SUM() function.
You've calculated K512+25, so why did you put SUM(K512+25) instead of just
putting K512+25? You could equally have put AVERAGE(K512+25), MIN(K512+25),
PRODUCT(K212+25), MEDIAN(K512+25) or any of a number of other functions
which give you an output value equal to the input value if you give them one
argument, but they are all as pointless as using SUM() in this situation.

Have you looked at whether =K512+25 gives you a #VALUE! error? If it does,
my guess is that K512 contains not a date but text. What does =ISTEXT(K512)
return?
--
David Biddulph

"Susan" wrote in message
...
I am trying to calculate a delivery date based on an vessel departure date
on
my worksheet (K512) and the location (N512), adding a specific number of
day
for each location. My formula is below, and I continue to get a #VALUE!
error.

IF(N512="AR",SUM(K512+25)),"",IF(N512="CA",SUM(K51 2+15)),"",IF(N512="FL",SUM(K512+33)),"",IF(N512="I L",SUM(K512+25)),"",IF(N512="PA",SUM(K512+31))) )

I've spent 2 hours on this one formula - help please!



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
Error dialog box meaning and how to find error Jeanne Excel Worksheet Functions 2 September 4th 08 04:59 AM
Find function returns the #VALUE! error value Ken Excel Discussion (Misc queries) 2 October 29th 06 01:59 AM
how to find an error nastech Excel Discussion (Misc queries) 0 July 12th 06 04:59 AM
help with this error-Compile error: cant find project or library JackR Excel Discussion (Misc queries) 2 June 10th 06 09:09 PM
Find and replace error meesh1224 Excel Worksheet Functions 1 February 2nd 05 02:52 AM


All times are GMT +1. The time now is 06:00 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"