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
P100.78
P1B100.2
P1Q10.20.4
P1U10.40.6
P1B20.60.78
P211.64
P2B111.2
P2B21.21.4
P2Q11.41.64
P322.64

<tbody>
</tbody>



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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
I don'y understand the 1.5 increase! How is 1.64 a 1.5 increase over 1.4?
 
Upvote 0
Or even over the starting number for P" of 1? Maybe in D1 copied down:

=IF(LEN(A1)>2,IF(C1>=1.5,"X",""),"")
 
Upvote 0
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
Strange it looks fine on my data!
Can you post a larger sample of data?
 
Upvote 0
So you only want to see one "X", on the 1st occasion it increases by 1.5?
 
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,215,517
Messages
6,125,287
Members
449,218
Latest member
Excel Master

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