If statement using istext and isnumber

itr674

Well-known Member
Joined
Apr 10, 2002
Messages
1,790
Office Version
  1. 2016
Platform
  1. Windows
Trying to run a simple IF/AND/ISTEXT/ISNUMBER but can't get it, probably simple fix...

Using this formula in range C3:C5

=IF(AND(ISTEXT(A3),ISTEXT(B3)),1,
IF(AND(ISNUMBER(A3),ISTEXT(B3),A3+$B$2>=$B$1),0,
IF(AND(ISTEXT(A3),ISNUMBER(B3),B3+$B$2>=$B$1),0,1)))

[TABLE="width: 242"]
<tbody>[TR]
[TD="class: xl67, width: 109, bgcolor: transparent"]Target
[/TD]
[TD="class: xl68, width: 116, bgcolor: transparent"]1-Sep-18
[/TD]
[TD="class: xl67, width: 97, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent"]Freq (days)
[/TD]
[TD="class: xl66, bgcolor: transparent"]360
[/TD]
[TD="class: xl67, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]Text
[/TD]
[TD="class: xl65, bgcolor: transparent"]Text
[/TD]
[TD="class: xl66, bgcolor: transparent"]1
[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]28-Sep-17
[/TD]
[TD="class: xl65, bgcolor: transparent"]Text
[/TD]
[TD="class: xl66, bgcolor: transparent"]0
[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]Text
[/TD]
[TD="class: xl65, bgcolor: transparent"]4-Oct-17
[/TD]
[TD="class: xl66, bgcolor: transparent"]#VALUE!
[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
A3 and B3 would be TEXT
A4 is a number and B4 is TEXT
A5 is TEXT and B5 is a number

and columns A and B alternate that way for the entire sheet...I just cant figure out how to get rid the #VALUE ...

the TEXT is normally something like "item not started", "not complete" and so one.
the NUMBER is a date.

The reason for two columns is you can take the entire course, or "pre-test" out of the course...
 
Last edited:
Upvote 0
Hi,

See if this does what you need:


Book1
ABE
1Target1-Sep-18
2Freq (days)360
3TextText1
428-Sep-17Text0
5Text4-Oct-170
Sheet22
Cell Formulas
RangeFormula
E3=IF(ISNUMBER(A3),IF(A3+$B$2>=$B$1,0,1),IF(ISNUMBER(B3),IF(B3+$B$2>=$B$1,0,1),1))
 
Upvote 0

Forum statistics

Threads
1,224,833
Messages
6,181,242
Members
453,026
Latest member
cknader

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