#1   Report Post  
Posted to microsoft.public.excel.misc
Kat Kat is offline
external usenet poster
 
Posts: 56
Default If then statement

I have a spreadsheet that i need to do an if then statement for that I can't
figurar out. This is what I need done: Any number that equals the same as
the key row needs to be displayed in the results row. See below

Key B C D E F
G Results
1 1 2 3 4 5
6 1
2 2 3 4 5 1
5 2
3 3 4 5 1 2
7 2

So in the results column i need to put the if then statement = If column
B:F=A1 or " " then =

I hope someone can understand this.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default If then statement

I assume your final 2 in the example is a typo and should be 3 (so I
understand your problem), and if so you can try this in H1:

=IF(COUNTIF(B1:G1,A1)0,A1,"")

and copy down as required.

Hope this helps.

Pete

On Oct 5, 2:35 pm, Kat wrote:
I have a spreadsheet that i need to do an if then statement for that I can't
figurar out. This is what I need done: Any number that equals the same as
the key row needs to be displayed in the results row. See below

Key B C D E F
G Results
1 1 2 3 4 5
6 1
2 2 3 4 5 1
5 2
3 3 4 5 1 2
7 2

So in the results column i need to put the if then statement = If column
B:F=A1 or " " then =

I hope someone can understand this.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default If then statement

I don't entirely understand what you're asking for.
Are you saying that if the value in A1 is found anywhere in the range B1:F1
you want that A1 value writing into the results column in row 1, but
otherwise you want " " (or perhaps you want ""?)?
If so, there are a couple of things I don't understand about your examples:
Where (if at all) does column G come into the calculation?
Why in the third row of examples do you have a 2 in the results column, when
you had a 3 in columns A and B?
--
David Biddulph

"Kat" wrote in message
...
I have a spreadsheet that i need to do an if then statement for that I
can't
figurar out. This is what I need done: Any number that equals the same
as
the key row needs to be displayed in the results row. See below

Key B C D E F
G Results
1 1 2 3 4 5
6 1
2 2 3 4 5 1
5 2
3 3 4 5 1 2
7 2

So in the results column i need to put the if then statement = If column
B:F=A1 or " " then =

I hope someone can understand this.



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
Can an If statement answer an If statement? M.A.Tyler Excel Discussion (Misc queries) 2 June 24th 07 04:14 AM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM
IF, THEN statement John Sullivan Excel Worksheet Functions 1 July 19th 05 04:02 PM
If statement and Isblank statement Rodney C. Excel Worksheet Functions 0 January 18th 05 08:39 PM
Help please, IF statement/SUMIF statement Brad_A Excel Worksheet Functions 23 January 11th 05 02:24 PM


All times are GMT +1. The time now is 07:57 PM.

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

About Us

"It's about Microsoft Excel"