URGENT! I really need an Answer!

jpbonono

Board Regular
Joined
Aug 18, 2013
Messages
154
The conditions are:

There are multiple reference cells and all of those should be number, if one becomes a letter or not a number, it would prompt, "ERROR" or "FALSE" or "INVALID", if in case all cells are numbers, it would proceed to SUM it all up.

I've tried IF with ISNUMBER function but it only works with a single cell/value. :(

Please help. :(

Thanks.
 
@Aladin, P6,AD6,AR6,BF6. These cells should only contain numbers, if that so, then it will be added. While if one of this cell has changed into letter or not a number, it'll prompt Invalid or Error. Hope this would help.

Try...
Rich (BB code):
=IF(COUNT(P6,AD6,AR6,BF6)=AREAS((P6,AD6,AR6,BF6)),
   SUM(P6,AD6,AR6,BF6),"invalid data encountetered")
 
Upvote 0

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
very good. i never could imagine that areas function could be this useful sometimes. from what i understood, you used this areas function becuase the condition were to check multiple ranges.
what if we have similar case but the range is only single range, for example i tried it with the code =IF(COUNT(A4:A12)=AREAS((A4:A12)), SUM(A4:A12),"invalid data encountetered") but it does not work. any idea?



Try...
Rich (BB code):
=IF(COUNT(P6,AD6,AR6,BF6)=AREAS((P6,AD6,AR6,BF6)),
   SUM(P6,AD6,AR6,BF6),"invalid data encountetered")
 
Upvote 0
very good. i never could imagine that areas function could be this useful sometimes. from what i understood, you used this areas function becuase the condition were to check multiple ranges.
what if we have similar case but the range is only single range, for example i tried it with the code =IF(COUNT(A4:A12)=AREAS((A4:A12)), SUM(A4:A12),"invalid data encountetered") but it does not work. any idea?

When the range of interest is contiguous, we can do just with COLUMNS or ROWS as the case may be...

=IF(COUNT(A4:A12)=ROWS(A4:A12), SUM(A4:A12),"invalid data encountetered")
 
Upvote 0
GREAT! worked perfectly. i tried it with the columns instead of rows and it worked too.

thanks Aladin.

When the range of interest is contiguous, we can do just with COLUMNS or ROWS as the case may be...

=IF(COUNT(A4:A12)=ROWS(A4:A12), SUM(A4:A12),"invalid data encountetered")
 
Upvote 0
Its not sir, the other one is regarding an exceeding of number from the ref cell, this one is if the group of cell should only contain numbers and if one has letter or not a number it would prompt invalid. If the conditions were met the numbers on the cell would be added.

I would suggest trying to use descriptive thread titles in the future. The "URGENT" crap is just as likely to result in people ignoring your question as it is entice them to look at it.
 
Upvote 0
If all of the cells will always be populate with either a number or text then this formula should work...

=IF(OR(ISTEXT(P6),ISTEXT(AD6),ISTEXT(AR6),ISTEXT(BF6)),"ERROR",SUM(P6,AD6,AR6,BF6))

If any of the cells can be blank/null OR text then you would probably want to use this...

=IF(AND(ISNUMBER(P6),ISNUMBER(AD6),ISNUMBER(AR6),ISNUMBER(BF6)),SUM(P6,AD6,AR6,BF6),"ERROR")

I hope this helps
 
Upvote 0

Forum statistics

Threads
1,216,110
Messages
6,128,894
Members
449,477
Latest member
panjongshing

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