ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   how to use "text" in "if then" condition (https://www.excelbanter.com/excel-discussion-misc-queries/247154-how-use-text-if-then-condition.html)

If Then

how to use "text" in "if then" condition
 
how can i test a condition in "text" and if the written text in a cell
(eg:A1) is correct i want the result in numeric.
eg: if A1=karur then 750

i require a assistance using a nested loop.
eg: if A1=karur and B1=vellore then 750, if A1=karur and B1= arani then 600.
(continious loop)

JLatham

how to use "text" in "if then" condition
 
You didn't say if A1 might be anything other than Karur, so I went with what
you provided:
=IF(AND(A1="karur",B1="vellore"),750,IF(AND(A1="ka rur",B1="arani"),600,"not
a specific pair"))
should deal with it. You can replace "not a specific pair" with another
phrase or value such as 0.


"If Then" wrote:

how can i test a condition in "text" and if the written text in a cell
(eg:A1) is correct i want the result in numeric.
eg: if A1=karur then 750

i require a assistance using a nested loop.
eg: if A1=karur and B1=vellore then 750, if A1=karur and B1= arani then 600.
(continious loop)



All times are GMT +1. The time now is 10:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com