if elseif

  1. B

    More efficient way to write a sequential If - Else statement

    I am working on a program that contains a selection of a train number, and once that train number is selected there are two cars associated with each train number. These numbers will increase sequentially and the car numbers will also increase sequentially. What I want to be able to do is...
  2. R

    If-else statements for multiple columns

    Hi, Need a formula for showing value of a cell as follows: if cell value = value in cell a1, then show value in cell b1, else if cell value = value in cell a2, then show value in cell b2, else if cell value = value in cell a3, then show value in cell b3 and so on. <tbody> Value (input) A B...
  3. E

    HELP! Excel Forms - Displaying tables in Listbox depending on Tab strip in Clicked.

    Hello, New here. I want to use a form as a data entry window for an excel sheet, so that the user need not even visit the actual sheets and just work off the form window. I have used tabs tips to label all sheets in the file. and I want to a listbox to display each sheet table depending on...
  4. I

    VBA code to find a cell containing certain word and using the row number of the cell run a if else statement.

    <tbody> sl.no customer ID A gain target A gain target Value A loop target A loop target value A Loop high A loop high value B Gain target B loop target B loop high 1 345 345 1 345 45 34 45 67 2 234 3466 1 2345676 1 67 1 76 56 67 3 123 3457 34567 456...
  5. S

    ElseIf and Or statement in VBA Excel 2010

    Hello, I'm a new user of VBA and have run into a problem with the (poorly) written code I have made. I have tried to shorten my code by combining common tasks, however it runs but selects the wrong data In the example below, The code returns the expected if I select "M135X" and "300 hrs", but...
  6. E

    VLookUP - tables, values

    I have made a pricing template for my work - the basic spreadsheet relied upon a 'model' selected from a dropdown list (J1) this would then help to select a column in a table contained on a seperate sheet (Bonnet) for the price of the model, this would later be determined by dimensions and...
  7. L

    IsBlank then return other field content

    I have a situation where I have 3 columns of data and in a four column I need to evaluate the data in the 1st 3 column in steps and return a result in column 4. I will refer the cells as A2, B2,C2, D3 where the following values are populated 10abc,Blank,Blank The logical steps required If C2...
  8. T

    IF ElseIF

    Any Ideas why this only works for the first case and although it seems to work for the others on Step Through it does not change the values of PramA and PramB If Loading = "F" Then PramA = 1 And PramB = 0 ElseIf...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top