Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

regarding compoent creation

Posted on 2001-06-14
5
Medium Priority
?
139 Views
Last Modified: 2010-05-02
the algorithm looks like this
=IF(P14>=100,1000,500) in excel where p14 represents a cell

i want this to be interpreted in vb logic within module.
how can it be done?please explain me
      whether  I have to convert this into vb code consists of if structure.how is it possible

please explain me asap

thanks in advance

vbdoubt
0
Comment
Question by:vbdoubt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 40 total points
ID: 6190336
Result = Iif(Value>=100,1000,500)

Where Value is the equivalent of the cell's contents.

So if Value = 10 Then Result = 500, if Value = 150 then Result = 1000
0
 

Author Comment

by:vbdoubt
ID: 6190358

thanks for immediate reply.

if there is any sum,avg function instead of value.then what can i do? please explain me ASAP.



THANKS IN ADVANCE
VBDOUBT


0
 
LVL 43

Expert Comment

by:TimCottee
ID: 6190413
See my question in your other thread, I think that I need to better understand what you are trying to achieve.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7136121
Moderator, my recommended disposition is:

    Accept TimCottee's comment(s) as an answer.

DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Expert Comment

by:Computer101
ID: 7168363
Comment from expert accepted as answer

Computer101
E-E Moderator
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question