kelvin_9

Active Member
Joined
Mar 6, 2015
Messages
444
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

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
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:

column Bcolumn CColumn D
00:00-18:0009:15 - 17:00
Code:
=IFERROR(IF(AND(--LEFT(C69,5)>=--LEFT(B69,5),--RIGHT(C69,5)<=--RIGHT(B69,5)),"","WRONG"),"")

<tbody> </tbody>

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,214,908
Messages
6,122,187
Members
449,072
Latest member
DW Draft

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