p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > Microsoft Office > Excel VBA > Excel VBA
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Excel VBA Discuss using VBA for Excel programming.

Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 19th, 2009, 01:22 PM
Friend of Wrox
Points: 583, Level: 8
Points: 583, Level: 8 Points: 583, Level: 8 Points: 583, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: Ennis, Clare, Ireland.
Posts: 122
Thanks: 6
Thanked 0 Times in 0 Posts
Default Cell formula query

Hi,

I need to build a formula in a column I on Account_Setup worksheet within my workbook.

Firstly, it is based on whether Column H on the same sheet is <> blank "" (if Column H = blank then Column I = 1)
Secondly, if the value of column H is NOT blank, it will match a value found within a table held on a separate sheet (Setup_Tables H5:H54). The formula should return the value held in the adjacent column I from the Setup_Table worksheet).

I think its something like:

Code:
=IF(H7<>"",INDEX(Setup_Tables!H5:H54,MATCH(H7,Setup_Tables!I5:I54,0)),1)
but I'm getting an '#N/A' error.


Any ideas? Hope this makes sense,

Thanks in advance,
__________________
Neal

A Northern Soul

Last edited by Neal : October 19th, 2009 at 01:48 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old October 19th, 2009, 01:53 PM
Friend of Wrox
Points: 583, Level: 8
Points: 583, Level: 8 Points: 583, Level: 8 Points: 583, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: Ennis, Clare, Ireland.
Posts: 122
Thanks: 6
Thanked 0 Times in 0 Posts
Default

I think I've found the answer. It should perhaps be:

Code:
=IF(H7<>"",INDEX(Setup_Tables!I5:I54,MATCH(H7,Setup_Tables!H5:H54,0)),1)
Thanks anyway.
__________________
Neal

A Northern Soul
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Formula on Active Cell manojkumarsoni Excel VBA 3 August 26th, 2007 09:56 AM
What would the formula "=+D4" do in a cell? BrianWren Excel VBA 2 February 2nd, 2006 03:36 AM
Excel putting result of a formula in another Cell hakimk Excel VBA 5 January 17th, 2006 04:26 AM
Inserting formula into active cell alisonchase Excel VBA 3 March 3rd, 2005 10:06 AM
Cell returns its own formula after a macro! timoma Excel VBA 2 December 19th, 2004 03:48 PM



All times are GMT -4. The time now is 05:15 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc