multiple IF (increaseing rows)

sdoppke

Well-known Member
Joined
Jun 10, 2010
Messages
647
Hi everyone, im strugling with dragging a formula to the right and to have the rows increase (but the columns stay the same) Im using the $ to freeze the column, but when dragged to the right, all it does is copy the formual exactly the same way. Any ideas? Here is the formula:

Code:
=IF('Week 1 Chart'!$D2="-","0",'Week 1 Chart'!$D2)

so idealy when dragged to the right the next formula would read:

Code:
=IF('Week 1 Chart'!$D3="-","0",'Week 1 Chart'!$D3)

Thanks in advance for any help.

sd
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Try:

=IF(INDEX('Week 1 Chart'!$D:$D,COLUMNS($C2:D2))="-","0",INDEX('Week 1 Chart'!$D:$D,COLUMNS($C2:D2)))
 
Upvote 0
Try:

=IF(INDEX('Week 1 Chart'!$D:$D,COLUMNS($C2:D2))="-","0",INDEX('Week 1 Chart'!$D:$D,COLUMNS($C2:D2)))

That worked! thank you... but :( (hopefully this makes sense) every 2 cells are merged. Is there a way to make the formula increase by 1 row (as stated before) every other cell? so it works in the proper merged cells. Sorry i didnt say that before, i didnt even think about it.


Thanks for your help!

sd
 
Upvote 0
Give this a shot (And thank you for the feedback ;)):

=IF(INDEX('Week 1 Chart'!$D:$D,COLUMNS($C2:C2)*2)="-","0",INDEX('Week 1 Chart'!$D:$D,COLUMNS($C2:C2)*2))
 
Upvote 0
Give this a shot (And thank you for the feedback ;)):

=IF(INDEX('Week 1 Chart'!$D:$D,COLUMNS($C2:C2)*2)="-","0",INDEX('Week 1 Chart'!$D:$D,COLUMNS($C2:C2)*2))

MrKrows, again thank you, i dont know how you figue this stuff out! :) I looks like this is skipping every 2 cells on the "Week 1 Chart" ws. If i were to play with till i get it right, would I play with the $C2:C2)*2 portion?

sd
 
Upvote 0
MrKrows, again thank you, i dont know how you figue this stuff out! :) I looks like this is skipping every 2 cells on the "Week 1 Chart" ws. If i were to play with till i get it right, would I play with the $C2:C2)*2 portion?

sd

Ahh, I think I see your requirements now (it is really hard to figure out without a visualization of your data).

Try:

=IF(INDEX('Week 1 Chart'!$D:$D,ROUNDUP(COLUMNS($C2:E2)*0.5,0))="-","0",INDEX('Week 1 Chart'!$D:$D,ROUNDUP(COLUMNS($C2:E2)*0.5,0)))
 
Upvote 0
That was it, thank you very much! I will post a picture or the file next time to help.


sd
 
Upvote 0

Forum statistics

Threads
1,224,560
Messages
6,179,520
Members
452,921
Latest member
BBQKING

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