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.
 
this one is a cool trick too. thx Robert

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

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
How logical! Thank you! This one is easier to understand :) Thank you RobertCotton!

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,111
Messages
6,128,899
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