#### create a new formula?

```I am using the nested functions below

"=if(vlookup(1, GRID, 3,false) = 0, (1, GRID, 4, false), (1, GRID, 3,
false))"

i.e for the row with the digit one in its first column return the value in
the third column else if empty return the value in the fourth column.

my problem is i am repeatedly using the line above exactly only changing the
value i am searching for (1 in this case ))

so ideally i'd like to do something like

define myformula(X) = if(vlookup(X, GRID, 3,false) = 0, (X, GRID, 4, false),
(X, GRID, 3, false))

is this possible?????????

```
 0
5/11/2006 9:12:30 PM
excel 39879 articles. 2 followers.

3 Replies
830 Views

Similar Articles

[PageSpeed] 28

```Assuming that the third and fourth column contain numerical values,
try...

=LOOKUP(9.99999999999999E+307,VLOOKUP(1,GRID,{4,3},0))

If they contain text values, replace...

9.99999999999999E+307

with

REPT("z",255)

Hope this helps!

In article <u-mdnfSSJN1ZNf7ZRVny1A@bt.com>,
"James Cornthwaite" <jamescornthwaite@btinternet.com> wrote:

> I am using the nested functions below
>
> "=if(vlookup(1, GRID, 3,false) = 0, (1, GRID, 4, false), (1, GRID, 3,
> false))"
>
> i.e for the row with the digit one in its first column return the value in
> the third column else if empty return the value in the fourth column.
>
> my problem is i am repeatedly using the line above exactly only changing the
> value i am searching for (1 in this case ))
>
> so ideally i'd like to do something like
>
> define myformula(X) = if(vlookup(X, GRID, 3,false) = 0, (X, GRID, 4, false),
> (X, GRID, 3, false))
>
> is this possible?????????
```
 0
domenic22 (716)
5/11/2006 11:17:11 PM
```Yes, but it have to be done in macro

http://techrepublic.com.com/5100-1035_11-5300300.html

```
 0
5/12/2006 12:35:25 AM
```thats great cheers

<arthurjr07@gmail.com> wrote in message
> Yes, but it have to be done in macro
>
> http://techrepublic.com.com/5100-1035_11-5300300.html
>

```
 0
5/12/2006 8:44:52 PM

Similar Artilces:

create a roster
How can you create a weekly roster in which functions can be assigned to more than 10 people. The roster should be updatable, so that when holidays and days off are marked on the weekly roster they will be taken account of it future rosters. ...

Is there a formula to show \$5,000,000 as \$5M?
I am looking for an easy way to convert \$M values to eliminate the 6 zeros. Thanks. You could try something like this: =IF(RIGHT(A1,6)="000000",A1/1000000&"M",A1) unless someone has a better idea.... Sheila "ExcelHelp" wrote: > I am looking for an easy way to convert \$M values to eliminate the 6 zeros. > > Thanks. Another option: =TEXT(A1,"\$ #,, ""M""") Another option would be to keep the value in the cell, and use a similar Custom format. -- Dana DeLouis Win XP & Office 2003 "ExcelHelp" <...

importing or creating reference footnotes
I am trying to import a word document into publisher and it has reference footnotes within the document. The reference footnotes are not coming into the publisher document with the reference footnotes. Correct, they will not up to Publisher 2003. In Publisher 2003 depending on which version of Word you are using if they will or not. -- "If you don't know where you are going, any road will take you there!" ...

Inserting rows with Data, Formula's and Validation
Hi all, I posted this twice earlier today, but it hasn't appeared so if it triple post please forgive! I have a spreadsheet that starting at row 18 contains the following information A18=M\$2 B18= Datavalidation indirect (\$M\$2) C18=IF(B18="No More Options",VLOOKUP(\$B18,INDIRECT(CONCATENATE(\$M\$2,"_info")),1,FALSE),IF(B19<2,VLOOKUP(\$B18,INDIRECT(CONCATENATE(\$M\$2,"_info")),1,FALSE),CONCATENATE(B19," x ",VLOOKUP(\$B18,INDIRECT(CONCATENATE(\$M\$2,"_info")),1,FALSE)))) E18=IF(ISERROR(VLOOKUP(\$B18,INDIRECT(CONCATENATE(\$M\$2,"_info"))...

Mailbox not created when AD account created
A couple of days ago I noticed that I created a user account but the 'Email Addresses' tab of the user properies did not list any email addresses. Subsequent new user accounts have all experienced the same. I researched the knowledge and tried the recommended solutions to either manaully start the recipient update service or rebuild te recipient update service. Neither recommendation has resulted in a mailbox being created for this particular user or any additional user that I have created since this error first showed up. I performed a Windows update last Thursday and so I bel...

Check to see if a formula is correct
I want to do something like this Sub Macro1() If Range("A1") =(=B1 + B2) Then ' This is a formula Exit Sub Else Range("C1").Select 'Has correct formula Selection.Copy Range("A1").Select Selection.PasteSpecial Paste:=xlFormulas End If End Sub How do I do this? Hi Try Sub Macro1() If Range("A1").HasFormula Then Exit Sub Else Range("C1").Copy Range("A1").PasteSpecial Paste:=xlFormulas Application.CutCopyMode = False ...

Incorrect formula
Would appreciate help with my formula. I only want the 1 to be added to L28 and L29 if they have a value greater than 0. this formula produces 2 even if all the cells have nothing in them, but I need there to be nothing in the cell if no values are in any cells. If the value of every cell in the formula was 1 then my answer should be 14 but if cell L28 is 0 then the answer should be 12, and if neither L28 or L29 has a value then the answer should be 10, but because of the =1 in my formula I get an answer that is 12.(or 2 greater than I want if values are in other cells) Help appre...

I'm trying to make a simple task, when a user owner is assigned a task in CRM, it receives an email letting it know it has one. I have the following below, but it is not generating one when i assign one manually in the CRM. What to do? I've tried both the following: When task is created E-Mail to:[owner];Subject test As well as: When task is created if Task activity status = Open then E-Mail to:[owner];Subject test I've checked the mailserver many times over, and I can send emails manually from the CRM so you can rule that out Tested out ok on our end. Some ideas:...

New Store in other country
hi all, we have opened a new store in other foreign country, the problem is this new store will receive stock and sell with his local currancy ( currancy rate 1.2 ). How can we manage this store ( calculate the cost ,reports... etc) in HQ. any help please thanks Get ready for a lot of manual work. The way I handle it is each stoer is in local currency. When I transfer something from location to location, I manually change the costs on the transfer in at the receiving store. "Sad" <Sad@discussions.microsoft.com> wrote in message news:B929754D-D285-42BA-B2D1-03D6D0262902...

Help Creating XmlNode / XmlAttribute Elegantly
I am creating a configuration class to read / write a standard configuration file. <?xml version="1.0" encoding="utf-8"?> <configuration> <appSettings> <add key="ConnectionString" value="server=(local);" /> </appSettings> </configuration> I am using a XmlDocument for my base implementation. I am looking to see if there is a better way to add a new node / attribute than using XmlDocument.InnerXml. I would consider this to be a hack but couldn't really see another way of doing this without definin...

Create external database
Hi all. I need to create an external database (file). On a site I found this code: ------------------------------------------------------ Function CreateLinkedExternalTable(strTargetDB As String, strProviderString As String, strSourceTbl As String, strLinkTblName As String) As String 'strTargetDB = Source Database Name 'strProviderString = Not used, currently hard coded 'strSourceTbl = Source Table name in the database we are linking too. 'strLinkTblName = Table name we would like to see in the Access Database. Dim catDB As ADOX.Catalog Dim tblLink As...

How to create pie chart with %
I have got a problem that I don't if excel could help me to calculate the % within a column and draw a pie chart. My case is I have a column containing a series of numbers. e.g. 1,4,8,1,3,9,11,2,4,5,6,.........etc I want to draw a pie chart that showing 1-3 , 4-6, 7-9, >9 with the corresponding % inside that column. Can anyone tell me how can I make it ? Ray - You need to calculate the frequencies in your data. Let's assume your data is in A1:A12. In B1:B3 enter these numbers, the upper limits on the groupings: 3 6 9 You can enter ">9" into B4 witho...

Email address not created when a new user is created
All, This issue recently happened in my company. Upon creating a new user, the policy was set to create the smtp and X400 address automaticaly. Now when we create a user the smtp and x400 addresses are not created, and when attempting to setup the new user in outlook, the address cant be found. We are using exchange 2003 SP1 on Win2k3 servers. On Wed, 13 Jul 2005 06:49:07 -0700, "Bryan" <Bryan@discussions.microsoft.com> wrote: >All, >This issue recently happened in my company. Upon creating a new user, the >policy was set to create the smtp and X400 addres...

how do I copy a range to a new sheet
Now that I this group solved my problem of flagging dates of my club members as "expired", how would I automatically copy all of the members that are expired to a new worksheet so I can use this for a mail merge? I would need to check the condition of the expired column, YES or NO, then copy the yes's name and address columns only to a new page. TIA Why not just add that column and when you use mailmerge, just include the records with that flag set the way you need? If you really want to copy the rows, you could apply Data|Filter|Autofilter and filter to show just those mem...

Exchange 2010 MRM, no log files being created
I'm hoping someone can help me with this issue....it has been driving me crazy for days. I have enabled MRM logging on our exchange server, and I can see that some of the policies are working when I run start-managedfolderassistant. We have a retention policy tag on the deleteditems folder, and this does work. The problem is I am not getting any files in the MRM log directory. C:\Program Files\Microsoft\Exchange Server\V14\Logging\Managed Folder Assistant Events 9021 and 9022 are logged in the Application log, but where are the files? Below is the output of my mai...

when form created
I have a form which was created by someone else (not a form template) which is like a questionnaire with empty boxes to be completed. When the boxes are typed in all the margins move to accommodate the words being typed. Is there a way to fix/lock the original form and then just fill in the blank boxes? I suspect this is set up as a table with auto resizing enabled. Displaying table gridlines (Table | Show Gridlines) will help you see what you're dealing with. Then select the table, go to the Table tab of Table Properties, click Options, and clear the check box for "A...

This is a multi-part message in MIME format. ------=_NextPart_000_0024_01C3EA1F.730C0840 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I want to add a new worksheet and need to copy the formulas from the old = one to the new one. How do I do this? Thanks Jim ------=_NextPart_000_0024_01C3EA1F.730C0840 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-T...

To clarify, the notification works for new messages to Inbox, but fails to display the icon when the message is automatically moved to a subfolder based on a rule. A quick look in Google seems to to suggest that this is something that has been deliberately changed from Outlook XP. Cheers Paul <paul.francis@agresearch.co.nz> wrote: > To clarify, the notification works for new messages to > Inbox, but fails to display the icon when the message is > automatically moved to a subfolder based on a rule. A > quick look in Google seems to to suggest that this is > somethin...

How do you edit HTML source in a new outlook email message?
Trying to create a new email message by inserting HTML. I don't see a place to edit source for a new message. This is probably a really easy thing to do, I just can't find out where the "edit source" option is, and the help files don't seem to be any help. Thanks, Justin The feature doesn't exist in Microsoft Outlook. "justinvanderpol" <justinvanderpol@discussions.microsoft.com> wrote in message news:1ADC71DF-40BC-4656-98A8-A473EB40E837@microsoft.com... > Trying to create a new email message by inserting HTML. I don't see a > place ...

Creating a Brochure
How do you create a 3-column brochure from scratch for Publisher 2002? I can only find the directions for the 2003 version. Quick help would be appreciated, project is due Monday. Create a three-panel or four-panel folded publication http://office.microsoft.com/en-us/assistance/HP011646681033.aspx Scroll down to the section that says "Build a three-panel or four-panel publications from scratch." -- Mary Sauer MSFT MVP http://office.microsoft.com/ http://msauer.mvps.org/ news://msnews.microsoft.com "Derek" <Derek@discussions.microsoft.com> wrote in message news...

Users mailboxes not created when user created
I have a problem that recently just started happening on my exchange 2003 server. When i create a new user account and create the mailbox for exchange, once im done, the mailbox isnt created, adn if you go into the properties of the user account adn go to the exchange email address tab, there isnt an smtp or an x.400 address listed. I am having to manually create and add these, adn then go delete the exchange mailbox and recreate it. This is really annoying and would love to know if anyone has any ideas of how to fix it. Thanks Jason In news:9F836A43-98BF-435A-AA43-AFF10124BE3F@micro...

New POP3 E-Mail Account Deliver Folder
I have both an Exchange Account and a (personal) POP3 account that I check using Outlook 2003. Currently, both accounts drop new e-mail into my Exchange Inbox - and I have a rule that moves the POP3 e-mail to a personal folder inbox. Problem is, rules don't run when I'm not connected to the Exchange server. Is it possible to have the POP3 account post new e-mails to the personal folder, while keeping the Exchange account posting new e-mails to the exchange inbox? Thanks; Michael Have you tried to set up a personal folder specifically for the pop account and set the exchange acc...

How to create Access macro shortcut
I'm still using Access 97 and saw something the other day that I would like to use that was in Access 2000. In an Access 2000 database, there was a .mam file in a directory that launched the Access 2000 program and ran a macro. How do you set this up? Can it be done in Access 97? If so, how? Hi. > How do you set this up? Select the macro in the Database Window and right click with your mouse, then select "Create Shortcut..." in the pop-up menu. Follow the prompts for where to place the shortcut and what to name it. The default is: <PathToDeskTopDir>\Shortcut ...