Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need to reference two cells to construct formula

Hi

I don't think this is a hard problem but I'm definitely struggling
with it.

This formula currently works:

=DCOUNT('CD-09-147968'!A1:M10, "Date received", Query!C5:D6)


I would like to reference the name of the sheet (CD-09-147968) by
getting the information from another cell. Let's say that this
information will be stored in cell A1.

I also want to put the A1:M10 range in another cell and reference that
as well. Let's say this information will be stored in A2.

Does anyone know how to refer to cells A1 and A2 in the DCount formula
so that it gets the spreadsheet name and cell range?

Thanks for any help you can give....

regards
Helen



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Need to reference two cells to construct formula

=DCOUNT(INDIRECT("'" & A1 &"'!" & A2........etc



Gord Dibben MS Excel MVP

On Sat, 13 Jun 2009 17:09:25 -0700 (PDT), DaisyGirl wrote:

Hi

I don't think this is a hard problem but I'm definitely struggling
with it.

This formula currently works:

=DCOUNT('CD-09-147968'!A1:M10, "Date received", Query!C5:D6)


I would like to reference the name of the sheet (CD-09-147968) by
getting the information from another cell. Let's say that this
information will be stored in cell A1.

I also want to put the A1:M10 range in another cell and reference that
as well. Let's say this information will be stored in A2.

Does anyone know how to refer to cells A1 and A2 in the DCount formula
so that it gets the spreadsheet name and cell range?

Thanks for any help you can give....

regards
Helen



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
Reference blank cells in formula cycles Excel Discussion (Misc queries) 7 June 28th 07 07:25 PM
How to Construct a Formula Based on Text In Changing Cell [email protected] Excel Programming 0 June 27th 07 09:25 PM
Construct address as a reference not "text" aka_norm Excel Worksheet Functions 2 May 28th 05 10:42 PM
Construct cell reference for use in formula AG Excel Worksheet Functions 3 May 27th 05 03:21 PM
How construct a formula from cells with formulas as text? No Name Excel Programming 8 June 3rd 04 10:32 PM


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