#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PR PR is offline
external usenet poster
 
Posts: 4
Default Formula Error

I have a spreadsheet with two columns that I want to check the values in both
to see if totals agree.. I have place this in as a forumla but comes back
with an error.

the two columns are K and Q

=IF(K1=2,IF(Q1=2,"agree","Not"))

can anyone advise me what is wrong...

Regards - Paul
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default Formula Error

What error? Do you mean FALSE? You have not given your first IF() a return
if the result of K1=2, is FALSE

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"PR" wrote in message
...
I have a spreadsheet with two columns that I want to check the values in
both
to see if totals agree.. I have place this in as a forumla but comes back
with an error.

the two columns are K and Q

=IF(K1=2,IF(Q1=2,"agree","Not"))

can anyone advise me what is wrong...

Regards - Paul



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Formula Error

Is this what you want

=IF(AND(K1=2,Q1=2),"agree","Not")


--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"PR" wrote in message
...
I have a spreadsheet with two columns that I want to check the values in
both
to see if totals agree.. I have place this in as a forumla but comes back
with an error.

the two columns are K and Q

=IF(K1=2,IF(Q1=2,"agree","Not"))

can anyone advise me what is wrong...

Regards - Paul



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PR PR is offline
external usenet poster
 
Posts: 4
Default Formula Error

Thank you to all, Bill has answer this question... again thanks

PR

"Bob Phillips" wrote:

Is this what you want

=IF(AND(K1=2,Q1=2),"agree","Not")


--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"PR" wrote in message
...
I have a spreadsheet with two columns that I want to check the values in
both
to see if totals agree.. I have place this in as a forumla but comes back
with an error.

the two columns are K and Q

=IF(K1=2,IF(Q1=2,"agree","Not"))

can anyone advise me what is wrong...

Regards - Paul




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PR PR is offline
external usenet poster
 
Posts: 4
Default Formula Error

Thanks too all who have tried to answer my qestion... Bob forumla works...

many thanks

Paul

"Bob Phillips" wrote:

Is this what you want

=IF(AND(K1=2,Q1=2),"agree","Not")


--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"PR" wrote in message
...
I have a spreadsheet with two columns that I want to check the values in
both
to see if totals agree.. I have place this in as a forumla but comes back
with an error.

the two columns are K and Q

=IF(K1=2,IF(Q1=2,"agree","Not"))

can anyone advise me what is wrong...

Regards - Paul






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Formula Error

Your formula "fail". It returns "agree" when either K1 or/and Q1 are text

Here is the correction:
=IF(AND(COUNT(K1,Q1)=2,K1=2,Q1=2),"agree","not")



"Bob Phillips" wrote:

Is this what you want

=IF(AND(K1=2,Q1=2),"agree","Not")


--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"PR" wrote in message
...
I have a spreadsheet with two columns that I want to check the values in
both
to see if totals agree.. I have place this in as a forumla but comes back
with an error.

the two columns are K and Q

=IF(K1=2,IF(Q1=2,"agree","Not"))

can anyone advise me what is wrong...

Regards - Paul




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Formula Error

Try it like this:

=IF(AND(K1=2,Q1=2),"agree","Not")

--
Biff
Microsoft Excel MVP


"PR" wrote in message
...
I have a spreadsheet with two columns that I want to check the values in
both
to see if totals agree.. I have place this in as a forumla but comes back
with an error.

the two columns are K and Q

=IF(K1=2,IF(Q1=2,"agree","Not"))

can anyone advise me what is wrong...

Regards - Paul



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Formula Error

Your formula "fail". It returns "agree" when either K1 or/and Q1 are text

Here is the correction:
=IF(AND(COUNT(K1,Q1)=2,K1=2,Q1=2),"agree","not")


"T. Valko" wrote:

Try it like this:

=IF(AND(K1=2,Q1=2),"agree","Not")

--
Biff
Microsoft Excel MVP


"PR" wrote in message
...
I have a spreadsheet with two columns that I want to check the values in
both
to see if totals agree.. I have place this in as a forumla but comes back
with an error.

the two columns are K and Q

=IF(K1=2,IF(Q1=2,"agree","Not"))

can anyone advise me what is wrong...

Regards - Paul




  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Formula Error

Hi Paul,

I'm not sure if I understand your problem but if you are comparing
individual values in column K to those in column Q then your function would
read =IF(K1=Q1,"Agree","Does not agree")


"PR" wrote:

I have a spreadsheet with two columns that I want to check the values in both
to see if totals agree.. I have place this in as a forumla but comes back
with an error.

the two columns are K and Q

=IF(K1=2,IF(Q1=2,"agree","Not"))

can anyone advise me what is wrong...

Regards - Paul

  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Formula Error

If K1=2 and Q1=3 your results "Does not gree".Fail. OP wants if K1=2 and
Q1=2 and return "agree"

If K1=apple, Q1=apple your results "agree". FAIL


"BioPythonPete" wrote:

Hi Paul,

I'm not sure if I understand your problem but if you are comparing
individual values in column K to those in column Q then your function would
read =IF(K1=Q1,"Agree","Does not agree")


"PR" wrote:

I have a spreadsheet with two columns that I want to check the values in both
to see if totals agree.. I have place this in as a forumla but comes back
with an error.

the two columns are K and Q

=IF(K1=2,IF(Q1=2,"agree","Not"))

can anyone advise me what is wrong...

Regards - Paul



  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Formula Error

I am confused! Is it that PR wants to return the value "Agree" if both K1 and
Q1 are greater than or equal to 2. So if K1 was 5 and Q1 was 8 the function
would return the value "Agree"?

PC

"Teethless mama" wrote:

If K1=2 and Q1=3 your results "Does not gree".Fail. OP wants if K1=2 and
Q1=2 and return "agree"

If K1=apple, Q1=apple your results "agree". FAIL


"BioPythonPete" wrote:

Hi Paul,

I'm not sure if I understand your problem but if you are comparing
individual values in column K to those in column Q then your function would
read =IF(K1=Q1,"Agree","Does not agree")


"PR" wrote:

I have a spreadsheet with two columns that I want to check the values in both
to see if totals agree.. I have place this in as a forumla but comes back
with an error.

the two columns are K and Q

=IF(K1=2,IF(Q1=2,"agree","Not"))

can anyone advise me what is wrong...

Regards - Paul

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
Formula Error BB New Users to Excel 3 December 3rd 07 05:00 PM
Formula Error El Bee Excel Worksheet Functions 5 December 10th 06 05:45 AM
How do I replace "#N/A" error, to continue my formula w/o error? Ali Khan Excel Worksheet Functions 2 February 20th 06 03:49 PM
Formula #value! Error, nastech Excel Discussion (Misc queries) 4 January 18th 06 02:36 PM
Formula error Russell Pennington Excel Worksheet Functions 1 January 17th 06 09:09 PM


All times are GMT +1. The time now is 11:52 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"