If statement using istext and isnumber

itr674

Well-known Member
Joined
Apr 10, 2002
Messages
1,786
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)))

Target
1-Sep-18
Freq (days)
360
Text
Text
1
28-Sep-17
Text
0
Text
4-Oct-17
#VALUE!

<tbody>
</tbody>
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
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,214,525
Messages
6,120,051
Members
448,940
Latest member
mdusw

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