Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Equal to previous cell and named range

In many of my spreadsheets I compare a value in a cell to the previous
cell value in the same column, e.g. "If(A3=A2,...)". I would like to
have a named formula that supplies the A3=A2 part of the formula using
named ranges. What I have tried and could not get to work properly is:

Define a named range - "Item=Data!$A:$A"
Define the previous cell - "ItemUp=INDEX(Item,ROW()-1)"
Define equality test "ItemEqUp=(Item=ItemUp)"

When I use ItemEqUp in a formula in my spreadsheet (for example:
"IF(ItemEqUp,"Eq","NotEq"))" it evaluates to #NUM! during the Item
part of the formula. In the formula evaluation box I see (#NUM!
=INDEX($A:$A,ROW()-1)). The Index part of the formula evaluates
correctly and returns the item number. If I substitute the actual
range in place of the named range when defining the named formula, I
get the same result.

If I use the defined range and formula like this "If(Item=ItemUp,...)"
in the spreadsheet cell it does work.

Can this type of formula be written as a defined formula?
If it can, how would I do it?
Or: Is there a better way to do this?

Thanks,

Knapp

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
get data from a cell in each named range Shazzer Excel Worksheet Functions 9 December 21st 06 12:11 PM
inserting a named range into new cells based on a named cell Peter S. Excel Discussion (Misc queries) 1 June 4th 06 03:53 AM
Value/IsNumber/Brackets..? cell equal to range w/o Average nastech Excel Discussion (Misc queries) 2 March 29th 06 12:47 AM
named cell range Marilyn Excel Worksheet Functions 2 March 13th 06 07:42 PM
Getting a named range from a cell value Charles Woll Excel Worksheet Functions 2 February 25th 05 03:39 PM


All times are GMT +1. The time now is 03:05 AM.

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"