Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Importing a relative reference from a web query?

Hello,
I'm using the web query function inside Excel 2003 to import tabular
data generated by a php file (also done by me).

I'd like to place some formulas inside the table generated by php and
up to now, i've been able to write directly to it and successfully
place those formulas inside my Excel document.

eg: "=20*A1" works perfectly and it's executed flawlessy in excel.

I need to go one step further: i need to create "relative positioned"
formulas inside the php, for example "[myposition+one column to the
right]".

Is that even possible in excel ?

Thanks in advance for any hint!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Importing a relative reference from a web query?

=20*INDIRECT(ADDRESS(ROW(),COLUMN()+1))

or

ActiveCell.FormulaR1C1 = "=RC[1]"

--
Regards,
Tom Ogilvy



"gareth jax" wrote in message
ups.com...
Hello,
I'm using the web query function inside Excel 2003 to import tabular
data generated by a php file (also done by me).

I'd like to place some formulas inside the table generated by php and
up to now, i've been able to write directly to it and successfully
place those formulas inside my Excel document.

eg: "=20*A1" works perfectly and it's executed flawlessy in excel.

I need to go one step further: i need to create "relative positioned"
formulas inside the php, for example "[myposition+one column to the
right]".

Is that even possible in excel ?

Thanks in advance for any hint!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Importing a relative reference from a web query?


By the way: internationalization!

I've tried your example ( =20*indirect(address(row();column()+10)) )
and it does not works, because my excel is in italian.
I had to translate the functions in italian language.
Is there a way to use only one language "format" ? (eg: english named
functions ).

Thanks again!

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Importing a relative reference from a web query?

By the way: internationalization!

That is your job my friend. If you want an answer in italian, post in the
italian news group.

I already answered your email showing how to enter the formula with VBA
(formula written in US English).

--
Regards,
Tom Ogilvy

"gareth jax" wrote in message
ups.com...

By the way: internationalization!

I've tried your example ( =20*indirect(address(row();column()+10)) )
and it does not works, because my excel is in italian.
I had to translate the functions in italian language.
Is there a way to use only one language "format" ? (eg: english named
functions ).

Thanks again!



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
Use relative address for database query Horatio J. Bilge, Jr. Excel Discussion (Misc queries) 3 November 21st 08 08:53 PM
Using an offset formula for the reference in a relative reference Cuda Excel Worksheet Functions 6 November 15th 06 05:12 PM
Importing Data via Web Query - Can values be passed to query? [email protected] Excel Discussion (Misc queries) 5 May 9th 06 06:21 PM
Importing relative positoin information makega Excel Worksheet Functions 2 December 23rd 05 08:51 PM
Relative Reference Hari Excel Discussion (Misc queries) 4 October 26th 05 02:00 AM


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