Formula That Selects Next Cell

jmeyer180

New Member
Joined
May 21, 2014
Messages
19
I'm using Excel 2011 on my Mac, and I need to find a way to make excel do the following in a large amount of data:

Put into words, if column 6 doesn't equal the total, then the input needs to be the next cell to the right. Sorry this is the best way I know how to explain it, please let me know how to fix it!

Thanks,

Joel
1234567
A TotalFirst nonblank entryFormula I need to figure out
B3143if(B5=B4,0,if not then the cell after B1 which is B2
C333Should be 0
D333Should be 0
E5165Should be 0
F32383Should be 2
G111Should be 1

<tbody>
</tbody>
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
I won't be able to plug in B6 because that is the cell we are inputing the formula in. Does that make sense?
 
Upvote 0
Try that formula in B6. and all all cells in column 6 unless i totally miss what you wanted to do
 
Last edited:
Upvote 0
Try that formula in B6. and all all cells in column 6 unless i totally miss what you wanted to do

I figured out what I did wrong originally, however the formula still didn't quite work when I tried to drag across.

Maybe this will help, this is the actually sheet I'm working on. I'm trying to find the values in column S and column T. Almost all of them here will be 0, but row 24 should show "6" in cell T24.

To explain as simply as I can, Month 1 shows the very first entry in each row. After that, I want it to show the next number, whether that number is a 0 or a higher number. If I can get T24 to be "6" then I know the formula is correct.

application.pdf
 
Upvote 0
Could you show an example like the first post with column S T include and what you would like the results for S and T. A simple if then clause is fine.
 
Upvote 0
If S7=8, then T7=0. If that is true, then U7=6.

In the sense of a formula for cell T7, if(S7=Q7,0,then a formula that I can drag right O7)
MNOPQRSTU
1MarchAprilMayJuneGrand TotalMonth 1Month 2Month 3
22132
3111
41121
5111
6313
786148
8

9

<tbody>
</tbody>
 
Upvote 0
try that S2: =IF($P2=$Q2,0,N2)

When entering that into cell S2, I get a value of 0.

I want to keep all of the values that are already there up until the columns titled Month 2 and Month 3. Those two columns are the cells that need to be filled.

Month 1 represents the first nonblank cell in each row. I want month 2 to show the cell directly after the first nonblank cell.
 
Upvote 0
what the formula does is compare P2 and Q2, if P2=Q2, then 0, if not then it copies over the cell to the right of M2 which is N2. But since N2 is empty, you get 0
 
Upvote 0

Forum statistics

Threads
1,214,792
Messages
6,121,612
Members
449,038
Latest member
apwr

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