LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Convert Excel Formula to VBA

Dear experts,

My active sheet is P1, from which I have found an id value. I now wish to
'get' a value (let's call it maxpt) which is on another sheet (Summary). If I
were doing this in an Excel formula, the cell would contain the following:

=IF(ISNA(MATCH(D6,Summary!D2:D90,0)),"",OFFSET(Sum mary!D2,MATCH(D6,Summary!D2:D90,0)-1,1))

where D6 is the id value and the result would be maxpt. How, if at all, does
this convert to VBA? And can I use a VBA variable in place of the 'D6'?

Thanks!
 
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
in excel how can we put formula to convert numericalfigureto word excel Excel Worksheet Functions 3 May 7th 10 03:46 PM
number convert to word in excel which formula Rafi Sharif Excel Discussion (Misc queries) 3 April 3rd 09 12:03 PM
Excel 2002: Can I convert #N/A to 0 in the VLOOKUP( ) formula ? Mr. Low Excel Discussion (Misc queries) 6 September 27th 07 03:56 PM
excel formula to convert lat/lon degrees to DDD MM SS.SS? cbm Excel Worksheet Functions 1 July 18th 05 08:37 PM
How can I convert a formula to a value in excel? Morgansmummy Excel Discussion (Misc queries) 1 June 29th 05 04:22 PM


All times are GMT +1. The time now is 01:54 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"