Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
why would a formula on a spreadsheet work, while reproducing it in code
doesn't? i must be writing code incorrectly. spreadsheet formula: =MATCH(VALUE(B2),loan!$A$1:$A$3745,0) code: loanorig = Sheets("main").Range("b2") loanorigrow = Application.Match(loanorig.Value, Sheets("loan").Range("a1:a3745"), 0) any thoughts? i am really having problems w/ comparing and transforming text to values and vice versa. ALL I AM TRYING TO DO IS MATCH THINGS THAT LOOK ALIKE, but am failing miserably b/c one may be a number, the other text (text only b/c it is a formula result---from a number of all things). reformatting cells does no good. if i can at least get the above problem worked out, i can get by for now. thanks, (disdraught w/ excel) mike allen |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do i enable "Group" & "Ungroup" in a protected sheet | Excel Discussion (Misc queries) | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
Excel "Move or Copy" and "Delete" sheet functions | Excel Worksheet Functions | |||
How do i enable "Group" & "Ungroup" in a protected sheet | Excel Discussion (Misc queries) | |||
Range only works when Sheet Name is "Sheet1" | Excel Programming |