Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default excel 2007 and if then statements

Hi there,

I am new to this group. Nice to meet everyone!


I wish to write a formula in excel to pull data according to the
following algorithm:

For each filled row in Column I] do
If row[Column I] = "Automation Done" Then
get the contents of row [Column E]
End
End

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default excel 2007 and if then statements

Assume you want the results to appear starting in cell A1.

Enter this array formula** in A1 and copy down until you get blanks meaning
all data has been returned:

=IF(ROWS(A$1:A1)<=COUNTIF(I$1:I$20,"Automation
done"),INDEX(E$1:E$20,SMALL(IF(I$1:I$20="Automatio n
done",ROW(I$3:I$20)),ROWS(A$1:A1))-MIN(ROW(I$3:I$20))+1),"")

You can save a few keystrokes by using a cell to hold "Automation done" and
then reference that cell:

B1 = Automation done

=IF(ROWS(A$1:A1)<=COUNTIF(I$1:I$20,B$1),INDEX(E$1: E$20,SMALL(IF(I$1:I$20=B$1,ROW(I$3:I$20)),ROWS(A$1 :A1))-MIN(ROW(I$3:I$20))+1),"")

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"MegaC" wrote in message
...
Hi there,

I am new to this group. Nice to meet everyone!


I wish to write a formula in excel to pull data according to the
following algorithm:

For each filled row in Column I] do
If row[Column I] = "Automation Done" Then
get the contents of row [Column E]
End
End



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
If statements in Excel Joel Excel Discussion (Misc queries) 2 December 17th 07 11:34 AM
Excel 2007, show negative in my financial statements in brackets? caimbeul Excel Worksheet Functions 1 December 16th 07 01:47 PM
If\then statements in Excel [email protected] Excel Worksheet Functions 1 October 24th 07 07:10 PM
Excel - Any Help On If Statements BONJOVI2005 Excel Discussion (Misc queries) 2 December 12th 05 10:04 AM
Excel If Statements, please help! izzie Excel Worksheet Functions 4 December 8th 05 08:36 PM


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