Flagging increases in values when a certain criteria is met

MrSak87

New Member
Joined
Jan 8, 2015
Messages
44
Hi all,

I use this site often but I'm usually able to find a solution to my problem through your threads, but not this time so it's my first post.

Essentially I have huge amounts of lab data and have been automatically generating a testing schedule from it using a small macro but most calculations come from the formula bar. My problem is for a certain test a criteria must be met for it to be performed. i.e

Column A Column B Column C Column D
[TABLE="width: 500"]
<tbody>[TR]
[TD]P1[/TD]
[TD]0[/TD]
[TD]0.78[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P1B1[/TD]
[TD]0[/TD]
[TD]0.2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P1Q1[/TD]
[TD]0.2[/TD]
[TD]0.4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P1U1[/TD]
[TD]0.4[/TD]
[TD]0.6[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P1B2[/TD]
[TD]0.6[/TD]
[TD]0.78[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P2[/TD]
[TD]1[/TD]
[TD]1.64[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P2B1[/TD]
[TD]1[/TD]
[TD]1.2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P2B2[/TD]
[TD]1.2[/TD]
[TD]1.4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P2Q1[/TD]
[TD]1.4[/TD]
[TD]1.64[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P3[/TD]
[TD]2[/TD]
[TD]2.64[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]



For every 1.5 increase (column B and C is just a start and end) I want excel in column D to write an X next to it so in the example above the "X" would appear at row "P2Q1". Normally this would be quite easy but the P1, P2, P3 show the start and end of the whole sample so whatever solution is found needs to only include subsamples P1B1,P1Q1 etc and ignore full samples P1, P2, P3.

My explanation is awful I know but hopefully you can see what I'm tying to do!! Any help would be much appreciated!
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
I was thinking the increase is C over B?
=IF(AND((LEN(A1)>2),((C1-B1)>=1.5)),"X","")

Ah it is the subsample over the sample start point!
 
Last edited:
Upvote 0
Yea the subsample over the sample start point so basically every 1.5 increase from 0 needs to be flagged somehow. so 0, 1.5, 3, 4.5 etc. I'll give what you said a blast now see what happens. Thankyou for responding
 
Upvote 0
What's happening is before the first 1.5 everything is being ignored as wanted but then I don't want another X for another 1.5. What happens is I have blank to 1.5 then everything after the first X has an X....... So close!
 
Upvote 0
Sorry lunch break. On mine the X appears at the first 1.5 but then appears everytime after. So I want it to appear at 1.5, 3, 4.5, 6. I'll post a larger data sample
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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