Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Loop a long formula through range

I have the following formula that works well:

=IF(AND(B2=D25,D25<=C2,E24=AK1,AK2="X",E34E25),E 24,"")

I want to loop this formula through each cell in range B2:BB100

The result that is returned E24:P24 is a cell with some text in i
that should be displayed in each cell that meets the criteria in th
row loop range.

But the references to cells in E34E25 and AK1 need to increment to th
next cell to the right (i.e. F34F25 and AL1 etc.) in the range (E:P
AK:AV) each time the result of the formula is false or "".

Is this the right approach (long formula and loop)?
If so I need help writing the loop

Thanks!

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Loop a long formula through range

Hi
not sure why you want to do this in VBA. what is your goal with this
(there may be a simple worksheet function to achieve this)?

--
Regards
Frank Kabel
Frankfurt, Germany


I have the following formula that works well:

=IF(AND(B2=D25,D25<=C2,E24=AK1,AK2="X",E34E25),E 24,"")

I want to loop this formula through each cell in range B2:BB100

The result that is returned E24:P24 is a cell with some text in it
that should be displayed in each cell that meets the criteria in the
row loop range.

But the references to cells in E34E25 and AK1 need to increment to
the next cell to the right (i.e. F34F25 and AL1 etc.) in the range
(E:P , AK:AV) each time the result of the formula is false or "".

Is this the right approach (long formula and loop)?
If so I need help writing the loop

Thanks!!


---
Message posted from http://www.ExcelForum.com/


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Loop a long formula through range

Let me explain, first off I pasted the wrong formula, it should hav
been:
=IF(AND(E$1=$B2,E$1<=$C2,$E$24=$AK$1,$AK$2="X",$E $34$E$25),$E$24,"")


I'm trying to populate a work schedule with different tasks, If a
employee A2 is working in a time range E1:EI1 (Time of Day) with
start time B2 and an end Time C2 that is within the Time of Day Range

And a task is required E34 E25

And the employee can do the task AK2 = "X"

Then the cell in the loop range should = E24 (The task name)

Then loop this for each employee in range A1:A100

Thanks

--
Message posted from http://www.ExcelForum.com

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
http://CannotDeleteFile.net - Cannot Delete File? Try Long Path ToolFilename is too long? Computer Complaining Your Filename Is Too Long? TheLong Path Tool Can Help While most people can go about their businessblissfully unaware of the Windo Max Loger Excel Discussion (Misc queries) 0 June 14th 11 04:30 PM
reset the range of FOR loop Farooq Sheri Excel Discussion (Misc queries) 1 April 7th 09 08:05 PM
Loop through last cell/row of used range tkraju via OfficeKB.com Excel Discussion (Misc queries) 1 April 4th 09 04:45 PM
loop code on cell range Otto Excel Discussion (Misc queries) 1 July 3rd 08 02:35 PM
How do I loop a range of cells until I get a numeric value? ManKind New Users to Excel 1 June 4th 06 06:48 AM


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