LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Returning a value based on a query

Try this:

=IF(B2<1,C2,"")

Note that if B2 is an empty cell, an empty cell evaluates as 0 and 0 is less
than 1 so the result will be the value of C2. If you don't want that to
happen try this version:

=IF(AND(COUNT(B2),B2<1),C2,"")

--
Biff
Microsoft Excel MVP


"linda" wrote in message
...
I also have a question related to this topic.
I need to write a forumula that identifies a cell value on a row "if <1",
then to return the value of a text cell on the same row.
e.g. if B2<1 then return the text value of cell C2 as the answer.
Probably simple but ???
Thanks.

"T. Valko" wrote:

Try this:

=IF(COUNTIF(A1,"*cancel*"),"C",IF(COUNTIF(A1,"*res cind*"),"R",""))

--
Biff
Microsoft Excel MVP


"Gail" wrote in message
...
HI.

The cell I want to do the query on contains other data. I want to find
the
text "Rescind" and return the "R" value.

What is the best function to use?

Gail

"Mike H" wrote:

Hi,

If the cell could contain anything try this

=IF(A1="Rescind","R",IF(A1="Cancel","C",""))

If it will only contain Rescind or Cancel try this

=LEFT(A1,1)

Mike


"Gail" wrote:

Hi.

What function would I use to look for specific text in a cell, i.e.
Rescind
or Cancel, and return the value R or C in a designated cell?






 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Returning a value in one cell based on the criteria of another cel Kirstin Excel Worksheet Functions 2 May 17th 08 01:24 AM
Returning all values based on 2 criteria... Kevin Excel Discussion (Misc queries) 7 December 31st 07 07:17 AM
Incorrect syntax near '#' problem when returning to MS Query fromExcel Steen Persson (DK) Excel Discussion (Misc queries) 0 March 7th 06 03:23 PM
Returning data to Excel sheet from MS query SNB Excel Discussion (Misc queries) 0 April 27th 05 01:27 AM
Returning Multiple Values Based on One Value Nick Excel Worksheet Functions 5 March 31st 05 12:53 AM


All times are GMT +1. The time now is 12:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"