drag formula to the right

Dedeke

Board Regular
Joined
Dec 1, 2020
Messages
70
Office Version
  1. 2016
Platform
  1. Windows
Hi,

I am having problems with dragging this formula to the right so it changes the correct way.
I am using exel 2016 dutch version.

In cel F26 i have this formula:=ALS($V$15="Werk";Urenregister!R130;ALS($V$15="Verlof";Urenregister!T130;ALS($V$15="EW";Urenregister!U130;"")))
So depending on the Value from $V$ i get the correct value from de sheet"Urenregister"
Now i would like to drag this formula to the right (horizontaly) so it would change like this.

For cell G26= =ALS($V$15="Werk";Urenregister!R131;ALS($V$15="Verlof";Urenregister!T131;ALS($V$15="EW";Urenregister!U131;"")))
For cell H6= =ALS($V$15="Werk";Urenregister!R132;ALS($V$15="Verlof";Urenregister!T132;ALS($V$15="EW";Urenregister!U132;"")))

Is this possible, if yes How pleas
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Here is a much simplified version using the offset - I think you should be able to apply it to your problem to allow a nice dragging.

MrExcelPlayground20.xlsx
FGHIJKLMNOPQR
26JamieFredHarryMary
27
28
29
30
31Jamie
32Fred
33Harry
34Mary
Sheet26
Cell Formulas
RangeFormula
F26:I26F26=OFFSET($R$31,COLUMN(F26)-COLUMN($F$26),0)
 
Upvote 0
Solution
@ JamesCanale

i did some efforts using your hint , and translating to my dutch version (wich i did not mensionend) and came up ith this formule:

=ALS($V$15="Werk"; VERSCHUIVING(Urenregister!$R$9; KOLOM(F20)-KOLOM($F$20); 0); ALS($V$15="Verlof"; VERSCHUIVING(Urenregister!$T$9; KOLOM(F20)-KOLOM($F$20); 0); ALS($V$15="EW"; VERSCHUIVING(Urenregister!$U$9; KOLOM(F20)-KOLOM($F$9); 0); "")))

This seems to be working for my needs. It is also possible that this is a good effort and i could be even more simple or shorter a this one
 
Upvote 0

Forum statistics

Threads
1,215,096
Messages
6,123,074
Members
449,093
Latest member
ripvw

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