Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default In excel can I display a cell based on a calculation (eg M(14/2)?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default In excel can I display a cell based on a calculation (eg M(14/2)?

Not sure what exactly you are trying to do, but you can do:

Dim r as long

r = 14\2
Cells(r, 3).Select


RBS


"rnrxtreme" wrote in message
...


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default In excel can I display a cell based on a calculation (eg M(14/2)?

Display where?

msgbox activesheet.cells(cint(14/2),13).value

--
Tim Williams
Palo Alto, CA


"rnrxtreme" wrote in message ...



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default In excel can I display a cell based on a calculation (eg M(14/2)?

=INDIRECT("M" & 14/2)

or for more flexibility:

=INDIRECT("M" & A1/A2)
where A1 contains 14 and A2 contains 2

or even:

=INDIRECT(A3 & A1/A2)
where A3 contains "M"

Regards

Trevor


"rnrxtreme" wrote in message
...



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default In excel can I display a cell based on a calculation (eg M(14/

Thank you very much.


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default In excel can I display a cell based on a calculation (eg M(14/

Does this not work when there's a text command in the equation

I'm inputting =INDIRECT("B" & ROUNDDOWN($AA$1/$A11^D$37,0))

(all listed cells exist)

and it shows an error...
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default In excel can I display a cell based on a calculation (eg M(14/

You need to check what ROUNDDOWN($AA$1/$A11^D$37,0) evaluates to. It
needs to be a number between 1 and 65536. If it is likely not to be a
number you'll need to put some error checking in it and decide what you want
the value to be if there is an error.

Regards

Trevor


"rnrxtreme" wrote in message
...
Does this not work when there's a text command in the equation

I'm inputting =INDIRECT("B" & ROUNDDOWN($AA$1/$A11^D$37,0))

(all listed cells exist)

and it shows an error...



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
Perform a calculation based on a cell being selected fluffy Excel Worksheet Functions 2 December 24th 08 05:38 PM
macro to go to cell based upon a calculation MARK M Excel Discussion (Misc queries) 7 November 30th 08 01:28 AM
Can I display a cell based on a calculation (eg M(14/2)? rnrxtreme Excel Worksheet Functions 3 June 29th 06 11:32 PM
Save cell display but not calculation [email protected] New Users to Excel 4 May 9th 06 04:04 PM
Cell reference based on calculation scott_ross_3 Excel Discussion (Misc queries) 3 October 14th 05 08:24 AM


All times are GMT +1. The time now is 09:04 PM.

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"