Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Using text as a criteria in Excel

I am trying to get a value in excel where the criteria that has to be
satisfied are text in nature, but I do not what to type the text in the
formula but the cell reference.

I have use Sumif, If & And but no joy.

I hoping someone will be able to help.

Thanks
Tunde
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Using text as a criteria in Excel

Try this:

=IF(A1="some text",action_if_true,action_if_false)
or
=SUMIF(range_to_test,"some text",range_to_sum)

You must put quotes around the text.

Hope this helps.

Pete

On Apr 16, 12:24 pm, Baba wrote:
I am trying to get a value in excel where the criteria that has to be
satisfied are text in nature, but I do not what to type the text in the
formula but the cell reference.

I have use Sumif, If & And but no joy.

I hoping someone will be able to help.

Thanks
Tunde



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Using text as a criteria in Excel

Criteria to be entered into A1, can be text *OR* numeric:
If the formula is referencing a cell, *no* quotes are needed around the cell
reference.

=Sumif(B1:B100,A1,C1:C100)
As long as B1 to B100 are supposed to *match* the text in A1.

If B1 to B100 contains *only part* of the criteria (criteria="b" - AND -
B1:B100="abc", "bad", "cab", ... etc.), use this:

=SUMIF(B1:B100,"*"&A1&"*",C1:C100)


--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Baba" wrote in message
...
I am trying to get a value in excel where the criteria that has to be
satisfied are text in nature, but I do not what to type the text in the
formula but the cell reference.

I have use Sumif, If & And but no joy.

I hoping someone will be able to help.

Thanks
Tunde



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Using text as a criteria in Excel

Pete,

Thanks for your response, it helped in solving the problem.

Tunde

"Pete_UK" wrote:

Try this:

=IF(A1="some text",action_if_true,action_if_false)
or
=SUMIF(range_to_test,"some text",range_to_sum)

You must put quotes around the text.

Hope this helps.

Pete

On Apr 16, 12:24 pm, Baba wrote:
I am trying to get a value in excel where the criteria that has to be
satisfied are text in nature, but I do not what to type the text in the
formula but the cell reference.

I have use Sumif, If & And but no joy.

I hoping someone will be able to help.

Thanks
Tunde




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Using text as a criteria in Excel

Thanks for feeding back, Tunde.

Pete

On Apr 17, 10:38 am, Baba wrote:
Pete,

Thanks for your response, it helped in solving the problem.

Tunde



"Pete_UK" wrote:
Try this:


=IF(A1="some text",action_if_true,action_if_false)
or
=SUMIF(range_to_test,"some text",range_to_sum)


You must put quotes around the text.


Hope this helps.


Pete


On Apr 16, 12:24 pm, Baba wrote:
I am trying to get a value in excel where the criteria that has to be
satisfied are text in nature, but I do not what to type the text in the
formula but the cell reference.


I have use Sumif, If & And but no joy.


I hoping someone will be able to help.


Thanks
Tunde- Hide quoted text -


- Show quoted text -



Reply
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
Need help on counting text within certain criteria christinac Excel Worksheet Functions 5 April 27th 06 01:09 PM
Matching Text with With Certain Criteria SteveC Excel Worksheet Functions 19 April 4th 06 11:08 AM
How do I count wildcard text meeting certain criteria in EXCEL? cybermaksim Excel Worksheet Functions 1 February 17th 06 03:03 AM
Part of text as criteria irresistible007 Excel Worksheet Functions 2 November 24th 05 11:23 AM
Counting text criteria Belinda Excel Worksheet Functions 1 October 20th 05 10:43 PM


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

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"