Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 217
Default Formula using INDIRECT function?

Hi,

Can someone help me translate the following formula?

=VALUE(IF(ISERROR(INDIRECT(U61&$V$61&MATCH($B$60,I NDIRECT(U61&"A:A"),0))),0,INDIRECT(U61&$V$61&MATCH ($B$60,INDIRECT(U61&"A:A"),0))))

U61 = Belgium!
V61 = h
B60 = Low

If I can understand what it means I may be able to work out what is going on
on a very complicated spreadsheet i have inherited...


Thanks,
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,726
Default Formula using INDIRECT function?

The heart of it is this part

INDIRECT(U61&$V$61&MATCH($B$60,INDIRECT(U61&"A:A") ,0))

which is searching column A on the worksheet pointed to by U61
(INDIRECT(U61&"A:A")) for the value obtained from B60
(MATCH($B$60,INDIRECT(U61&"A:A"),0)), which presumabnly returna a row
number, and concatenating that with V61 to get a cell reference,
concatenating that with B61 to get a cell in a worksheet reference, and then
using INDIRECT to lookup the value pointed to by that cell.

The rest just checks if it is an error, so as to keep it neat and tidy.

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Louise" wrote in message
...
Hi,

Can someone help me translate the following formula?

=VALUE(IF(ISERROR(INDIRECT(U61&$V$61&MATCH($B$60,I NDIRECT(U61&"A:A"),0))),0,INDIRECT(U61&$V$61&MATCH ($B$60,INDIRECT(U61&"A:A"),0))))

U61 = Belgium!
V61 = h
B60 = Low

If I can understand what it means I may be able to work out what is going
on
on a very complicated spreadsheet i have inherited...


Thanks,



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Formula using INDIRECT function?


Phillip London UK

Matches the first occurrence of "Low" in Sheet named Belgium in column
A
and returns the value in column H in the matched row

So if Belgium!A3 contains "Low" then value of H3 is returned from the
sheet
where the formula is entered

If H3 contains an error value than formula returns 0

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
Copying a formula containing the INDIRECT function Pelham[_2_] Excel Worksheet Functions 7 August 30th 09 06:54 AM
Name of named formula used in an INDIRECT function Werner Rohrmoser Excel Worksheet Functions 4 August 21st 08 11:19 AM
Can INDIRECT function reference a cell that contains a formula Steve E Excel Worksheet Functions 13 August 23rd 06 10:49 PM
referencing named formula using INDIRECT function [email protected] Excel Worksheet Functions 19 May 11th 05 09:48 AM
Cell value in a formula -- Indirect function? Help please... Rob B[_2_] Excel Programming 3 February 5th 04 11:27 AM


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