Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 45
Default error with formula

Hi guys here is the issue.

Under column A, which is titled serial number, I have listed the formula
=IF(ISNUMBER(B28)=TRUE,A27+1,""). What this does is that it detects if there
is a date in column B and then inputs a serial number that is one more than
the previous one. If not the cell in column A is just left blank if no date
is detected.

Under column D, entitled Receipt number, I have inputed the formula
=IF(MOD(A27,8)=0,"","NA"). What this does is it detects the serial number in
column A and checks if it is a muliple of 8. If it is the cell in column D is
left blank. If not "NA" is displayed. However if there is no serial number at
all, I get a #VALUE! symbol.

To get rid of the symbol, I tried a new formula in column D,
=IF(ISNUMBER(A28),IF(MOD(A28,8)=0,"","NA"),"")
What I am trying to achieve is that if no number is detected in column A,
then column D should remain blank. If there is a number detected, then
=IF(MOD(A28,8)=0,"","NA") should be applied. However, this does not seem to
work. What am I doing wrong?



  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 15,768
Default error with formula

=IF(ISNUMBER(A28),IF(MOD(A28,8)=0,"","NA"),"")

Your formula is correct. What's not working?


--
Biff
Microsoft Excel MVP


"prem" wrote in message
...
Hi guys here is the issue.

Under column A, which is titled serial number, I have listed the formula
=IF(ISNUMBER(B28)=TRUE,A27+1,""). What this does is that it detects if
there
is a date in column B and then inputs a serial number that is one more
than
the previous one. If not the cell in column A is just left blank if no
date
is detected.

Under column D, entitled Receipt number, I have inputed the formula
=IF(MOD(A27,8)=0,"","NA"). What this does is it detects the serial number
in
column A and checks if it is a muliple of 8. If it is the cell in column D
is
left blank. If not "NA" is displayed. However if there is no serial number
at
all, I get a #VALUE! symbol.

To get rid of the symbol, I tried a new formula in column D,
=IF(ISNUMBER(A28),IF(MOD(A28,8)=0,"","NA"),"")
What I am trying to achieve is that if no number is detected in column A,
then column D should remain blank. If there is a number detected, then
=IF(MOD(A28,8)=0,"","NA") should be applied. However, this does not seem
to
work. What am I doing wrong?





  #3   Report Post  
Posted to microsoft.public.excel.newusers
Max Max is offline
external usenet poster
 
Posts: 9,221
Default error with formula

Try these, which basically checks A27 for blanks / zero length null strings:
""

In C28:
=IF(ISNUMBER(B28),IF(A27<"",A27+1,""))

In D28:
=IF(A27="","",IF(MOD(A27,8)=0,"","NA"))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"prem" wrote:
Hi guys here is the issue.

Under column A, which is titled serial number, I have listed the formula
=IF(ISNUMBER(B28)=TRUE,A27+1,""). What this does is that it detects if there
is a date in column B and then inputs a serial number that is one more than
the previous one. If not the cell in column A is just left blank if no date
is detected.

Under column D, entitled Receipt number, I have inputed the formula
=IF(MOD(A27,8)=0,"","NA"). What this does is it detects the serial number in
column A and checks if it is a muliple of 8. If it is the cell in column D is
left blank. If not "NA" is displayed. However if there is no serial number at
all, I get a #VALUE! symbol.

To get rid of the symbol, I tried a new formula in column D,
=IF(ISNUMBER(A28),IF(MOD(A28,8)=0,"","NA"),"")
What I am trying to achieve is that if no number is detected in column A,
then column D should remain blank. If there is a number detected, then
=IF(MOD(A28,8)=0,"","NA") should be applied. However, this does not seem to
work. What am I doing wrong?



  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 45
Default error with formula

Ah yes it is working. I actually inputed the worng cell number. So sorry
about this.

Anyway thank you for your input Max. And thank you Biff for confirming that
my formula is actually correct. Appreciate it. Could you also check my post
"grabbing data from 1 sheet to place in another" to see if you could help?
Its about 16 posts down from this one. Would really appreciate this.

Again thank you guys.

Prem

"T. Valko" wrote:

=IF(ISNUMBER(A28),IF(MOD(A28,8)=0,"","NA"),"")


Your formula is correct. What's not working?


--
Biff
Microsoft Excel MVP


"prem" wrote in message
...
Hi guys here is the issue.

Under column A, which is titled serial number, I have listed the formula
=IF(ISNUMBER(B28)=TRUE,A27+1,""). What this does is that it detects if
there
is a date in column B and then inputs a serial number that is one more
than
the previous one. If not the cell in column A is just left blank if no
date
is detected.

Under column D, entitled Receipt number, I have inputed the formula
=IF(MOD(A27,8)=0,"","NA"). What this does is it detects the serial number
in
column A and checks if it is a muliple of 8. If it is the cell in column D
is
left blank. If not "NA" is displayed. However if there is no serial number
at
all, I get a #VALUE! symbol.

To get rid of the symbol, I tried a new formula in column D,
=IF(ISNUMBER(A28),IF(MOD(A28,8)=0,"","NA"),"")
What I am trying to achieve is that if no number is detected in column A,
then column D should remain blank. If there is a number detected, then
=IF(MOD(A28,8)=0,"","NA") should be applied. However, this does not seem
to
work. What am I doing wrong?






  #5   Report Post  
Posted to microsoft.public.excel.newusers
Max Max is offline
external usenet poster
 
Posts: 9,221
Default error with formula

One crack given in that thread, with a link to a working sample to illustrate.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

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 formula #NAME? error Dave F Excel Worksheet Functions 0 November 30th 06 06:41 PM
error with formula holyman Excel Discussion (Misc queries) 3 July 12th 06 03:37 PM
How do I replace "#N/A" error, to continue my formula w/o error? Ali Khan Excel Worksheet Functions 2 February 20th 06 03:49 PM
Formula error Russell Pennington Excel Worksheet Functions 1 January 17th 06 09:09 PM
Formula Error Mike R Excel Discussion (Misc queries) 6 January 15th 05 05:27 AM


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