if+and

kelvin_9

Active Member
Joined
Mar 6, 2015
Messages
460
Office Version
  1. 2019
hello all, i need hand on a IF+AND formula, how can i amend it with my request?

Code:
=IFERROR(IF(AND(--LEFT(C59,5)>=--LEFT(B59,5),--RIGHT(C59,5)<=--RIGHT(B59,5)),"","WRONG"),"")

is it possible to return one more request with "NO GIVEN" when it encountered "#N/A"

thanks,
have a great day
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Encountered "#N/A" in which cell B59 or C59 (I am assuming B59)? what version of Excel are you using?
 
Upvote 0
Encountered "#N/A" in which cell B59 or C59 (I am assuming B59)? what version of Excel are you using?

i apologize for the confuse, MARK858
i use it to return my result like this:

[TABLE="class: grid, width: 200"]
<tbody>[TR]
[TD]column B[/TD]
[TD]column C[/TD]
[TD]Column D[/TD]
[/TR]
[TR]
[TD]00:00-18:00[/TD]
[TD]09:15 - 17:00[/TD]
[TD]
Code:
=IFERROR(IF(AND(--LEFT(C69,5)>=--LEFT(B69,5),--RIGHT(C69,5)<=--RIGHT(B69,5)),"","WRONG"),"")
[/TD]
[/TR]
</tbody>[/TABLE]

sometimes #N/A will return in column C, so i want column D with my answer - "NO GIVEN" when it is encountered
PS: excel 2013

thanks MARK
 
Last edited:
Upvote 0
...
=IF(ISNA(C59),"NO GIVEN",IFERROR(IF(AND(--LEFT(C59,5)>=--LEFT(B59,5),--RIGHT(C59,5)<=--RIGHT(B59,5)),"","WRONG"),""))
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,177
Members
452,615
Latest member
bogeys2birdies

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