SOLVED

data validation on two cells gives result in third cell

%3CLINGO-SUB%20id%3D%22lingo-sub-2044271%22%20slang%3D%22en-US%22%3Edata%20validation%20on%20two%20cells%20gives%20result%20in%20third%20cell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2044271%22%20slang%3D%22en-US%22%3E%3CP%3EI%20hope%20someone%20can%20help%2C%20I've%20tried%20a%20few%20variations%20without%20success%20so%20far.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CTABLE%20width%3D%22302px%22%3E%3CTBODY%3E%3CTR%3E%3CTD%20width%3D%22104px%22%20height%3D%2284px%22%3EBreed%3C%2FTD%3E%3CTD%20width%3D%2298px%22%20height%3D%2284px%22%3EThis%20is%20a%20list%20of%20dog%20breeds%3C%2FTD%3E%3CTD%20width%3D%2299px%22%20height%3D%2284px%22%3EChoose%20from%20list%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%22104px%22%20height%3D%2257px%22%3EGender%3C%2FTD%3E%3CTD%20width%3D%2298px%22%20height%3D%2257px%22%3E(Male%20or%20Female)%3C%2FTD%3E%3CTD%20width%3D%2299px%22%20height%3D%2257px%22%3EChoose%20from%20list%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%22104px%22%20height%3D%2284px%22%3ETarget%20Weight%26nbsp%3B%3C%2FTD%3E%3CTD%20width%3D%2298px%22%20height%3D%2284px%22%3EI%20want%20the%20weight%20here%20e.g.%3C%2FTD%3E%3CTD%20width%3D%2299px%22%20height%3D%2284px%22%3E%3CEM%3Epopulates%20from%20the%20choices%26nbsp%3Babove%3C%2FEM%3E%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExample%3C%2FP%3E%3CTABLE%20width%3D%22514%22%3E%3CTBODY%3E%3CTR%3E%3CTD%20width%3D%22223%22%3EBREED%3C%2FTD%3E%3CTD%20width%3D%22130%22%3EDog%20(kg)%3C%2FTD%3E%3CTD%20width%3D%22161%22%3E**bleep**%20(kg)%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%22223%22%3EAffenpinscher%3C%2FTD%3E%3CTD%20width%3D%22130%22%3E3%26nbsp%3B%20to%26nbsp%3B%207%3C%2FTD%3E%3CTD%20width%3D%22161%22%3E3%26nbsp%3B%20to%26nbsp%3B%204%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%22223%22%3EAfghan%20Hound%3C%2FTD%3E%3CTD%20width%3D%22130%22%3E27%20to%2032%3C%2FTD%3E%3CTD%20width%3D%22161%22%3E23%20to%2030%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%22223%22%3EAiredale%20Terrier%3C%2FTD%3E%3CTD%20width%3D%22130%22%3E20%20to%2027%3C%2FTD%3E%3CTD%20width%3D%22161%22%3E20%20to%2023%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20the%20above%20explains%20my%20situation.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2044271%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2044589%22%20slang%3D%22en-US%22%3ERe%3A%20data%20validation%20on%20two%20cells%20gives%20result%20in%20third%20cell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2044589%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F922626%22%20target%3D%22_blank%22%3E%40UKAndy%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20an%20Example%20is%20your%20source%20data%2C%20you%20may%20use%20INDEX(range%2CMATCH()%2CMATCH())%20on%20it.%20First%20MATCH%20to%20select%20row%20from%20Breed%20list.%20Second%20MATCH%20to%20select%20column%2C%20or%20it%20simply%20could%20be%20%3DIF(Gender%3DDog%2C1%2C2)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2044590%22%20slang%3D%22en-US%22%3ERe%3A%20data%20validation%20on%20two%20cells%20gives%20result%20in%20third%20cell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2044590%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F922626%22%20target%3D%22_blank%22%3E%40UKAndy%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EI%20did%20not%20get%20your%20need%2C%20i%20got%20confused%20with%20your%20example.%3C%2FP%3E%3CP%3Ewould%20you%20please%20share%20your%20file%2C%20so%20we%20can%20help.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2045401%22%20slang%3D%22en-US%22%3ERe%3A%20data%20validation%20on%20two%20cells%20gives%20result%20in%20third%20cell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2045401%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20two%20TABs%20one%20labelled%20(WeightGoals)%20and%20the%20other%20(Ideally%20Weight).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWeightGoals%20(TAB)%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22UKAndy_0-1610195264455.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F245046iD5C9B74C9D15FD61%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22UKAndy_0-1610195264455.png%22%20alt%3D%22UKAndy_0-1610195264455.png%22%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOn%20the%20weight%20tab%2C%20I%20enter%20the%20start%20date%20(8-Jan)%20and%20the%20starting%20Weight%2015.3%2C%20below%20I%20select%20the%20breed%20from%20a%20list%20populated%20from%20the%20Tab%20(Ideally%20Weight).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIdeally%20Weight%20(TAB)%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22UKAndy_1-1610195325040.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F245047i8C0051CBD2C4D1EE%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22UKAndy_1-1610195325040.png%22%20alt%3D%22UKAndy_1-1610195325040.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20selecting%20the%20Breed%20(Airedale%20Terrier)%20then%20the%20gender%20(Male)%20it%20would%20give%20me%20a%20Target%20Weight%20of%26nbsp%3B%3C%2FP%3E%3CP%3E20%20to%2023%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%222021-01-09_12-32-57.jpg%22%20style%3D%22width%3A%20351px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F245049iD819007BA58FF8AA%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%222021-01-09_12-32-57.jpg%22%20alt%3D%222021-01-09_12-32-57.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2045402%22%20slang%3D%22en-US%22%3ERe%3A%20data%20validation%20on%20two%20cells%20gives%20result%20in%20third%20cell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2045402%22%20slang%3D%22en-US%22%3EPlease%20review%20update%20description%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2045403%22%20slang%3D%22en-US%22%3ERe%3A%20data%20validation%20on%20two%20cells%20gives%20result%20in%20third%20cell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2045403%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F922626%22%20target%3D%22_blank%22%3E%40UKAndy%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhen%20as%20suggested%20before.%20Drop-down%20list%20for%20the%20Breed%20will%20be%26nbsp%3B%3CSPAN%3E%3CEM%3EIdeally%20Weight%5BBreed%5D%3C%2FEM%3E%20column%2C%20for%20Gender%20just%20Male%2CFemale.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EIf%20we%20name%20as%20%3CEM%3ERange%3C%2FEM%3E%20data%20in%20both%20%3CEM%3EMale%3C%2FEM%3E%20and%20%3CEM%3EFemale%3C%2FEM%3E%20columns%20of%26nbsp%3B%3CEM%3EIdeally%20Weight%3C%2FEM%3E%2C%20when%20%3CEM%3ETarget%20Weight%3C%2FEM%3E%20could%20be%20taken%20as%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DINDEX(Range%2C%20MATCH(Breed%2C%20IdeallyWeight%5BBreed%5D%2C%200)%2C%20IF(Gender%3D%22Male%22%2C1%2C2)%20)%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2046702%22%20slang%3D%22en-US%22%3ERe%3A%20data%20validation%20on%20two%20cells%20gives%20result%20in%20third%20cell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2046702%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20entering%20that%20formula%20I%20get%20a%20%23NAME%3F%26nbsp%3B%20error%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%222021-01-10_15-06-13.jpg%22%20style%3D%22width%3A%20625px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F245126i869324F2C9D3C03E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%222021-01-10_15-06-13.jpg%22%20alt%3D%222021-01-10_15-06-13.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EIdeally%20Weight%20(TAB)%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%222021-01-10_15-08-37.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F245127i10387448AD5D5057%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%222021-01-10_15-08-37.jpg%22%20alt%3D%222021-01-10_15-08-37.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20really%20appreciate%20your%20support%20in%20this%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2046938%22%20slang%3D%22en-US%22%3ERe%3A%20data%20validation%20on%20two%20cells%20gives%20result%20in%20third%20cell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2046938%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F922626%22%20target%3D%22_blank%22%3E%40UKAndy%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20guess%20you%20didn't%20define%20names%20Breed%2C%20Range%20and%20Gender%20in%20workbook.%20Alternatively%20you%20may%20use%20proper%20cell%20references.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2046963%22%20slang%3D%22en-US%22%3ERe%3A%20data%20validation%20on%20two%20cells%20gives%20result%20in%20third%20cell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2046963%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F922626%22%20target%3D%22_blank%22%3E%40UKAndy%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20an%20implementation%20of%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3B's%20formula%20but%20using%20a%20table.%3C%2FP%3E%3CP%3EThe%20final%20formula%20is%20no%20use%20without%20MS365.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2046974%22%20slang%3D%22en-US%22%3ERe%3A%20data%20validation%20on%20two%20cells%20gives%20result%20in%20third%20cell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2046974%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F214174%22%20target%3D%22_blank%22%3E%40Peter%20Bartholomew%3C%2FA%3E%26nbsp%3B%2C%20thank%20you.%3C%2FP%3E%0A%3CP%3EI'd%20modify%20a%20bit%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3D%20LET(%0A%20%20%20split%2C%20FIND(%22to%22%2C%20TargetWeight)%2C%0A%20%20%20lowerLimit%2C%20--TRIM(LEFT(%20TargetWeight%2C%20split-1%20))%2C%0A%20%20%20upperLimit%2C%20--TRIM(RIGHT(TargetWeight%2CLEN(TargetWeight)-split-2))%2C%0A%20%20%20result%2C%0A%20%20%20IF(%20StartWeight%20%26lt%3B%20%20lowerLimit%2C%0A%20%20%20%20%20%20%20%20TEXT(1%20-%20StartWeight%2FlowerLimit%2C%20%220%25%22)%20%26amp%3B%20%22%20under%20weight%22%2C%0A%20%20%20IF(%20StartWeight%20%26gt%3B%20upperLimit%2C%0A%20%20%20%20%20%20%20%20%20TEXT(1-upperLimit%2FStartWeight%2C%20%220%25%22)%20%26amp%3B%20%22%20over%20weight%22%2C%0A%20%20%20%20%20%20%20%20%20%22Within%20normal%20bounds%22))%2C%0A%20%20%20result%0A%20%20%20)%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I hope someone can help, I've tried a few variations without success so far.

 

 

BreedThis is a list of dog breedsChoose from list
Gender(Male or Female)Choose from list
Target Weight I want the weight here e.g.populates from the choices above

 

Example

BREEDDog (kg)**bleep** (kg)
Affenpinscher3  to  73  to  4
Afghan Hound27 to 3223 to 30
Airedale Terrier20 to 2720 to 23

 

I hope the above explains my situation.

26 Replies

@UKAndy 

If an Example is your source data, you may use INDEX(range,MATCH(),MATCH()) on it. First MATCH to select row from Breed list. Second MATCH to select column, or it simply could be =IF(Gender=Dog,1,2)

@UKAndy 


I did not get your need, i got confused with your example.

would you please share your file, so we can help.

@Sergei Baklan 

I have two TABs one labelled (WeightGoals) and the other (Ideally Weight).

 

WeightGoals (TAB)

UKAndy_0-1610195264455.png 

 

On the weight tab, I enter the start date (8-Jan) and the starting Weight 15.3, below I select the breed from a list populated from the Tab (Ideally Weight).

 

Ideally Weight (TAB)

UKAndy_1-1610195325040.png

 

 

So selecting the Breed (Airedale Terrier) then the gender (Male) it would give me a Target Weight of 

20 to 23

2021-01-09_12-32-57.jpg

Please review update description

@UKAndy 

When as suggested before. Drop-down list for the Breed will be Ideally Weight[Breed] column, for Gender just Male,Female.

If we name as Range data in both Male and Female columns of Ideally Weight, when Target Weight could be taken as

=INDEX(Range, MATCH(Breed, IdeallyWeight[Breed], 0), IF(Gender="Male",1,2) )

 

@Sergei Baklan 

 

When entering that formula I get a #NAME?  error

2021-01-10_15-06-13.jpg

Ideally Weight (TAB)

2021-01-10_15-08-37.jpg

 

I really appreciate your support in this

@UKAndy 

I guess you didn't define names Breed, Range and Gender in workbook. Alternatively you may use proper cell references.

@UKAndy 

This is an implementation of @Sergei Baklan 's formula but using a table.

The final formula is no use without MS365.

@Peter Bartholomew , thank you.

I'd modify a bit

= LET(
   split, FIND("to", TargetWeight),
   lowerLimit, --TRIM(LEFT( TargetWeight, split-1 )),
   upperLimit, --TRIM(RIGHT(TargetWeight,LEN(TargetWeight)-split-2)),
   result,
   IF( StartWeight <  lowerLimit,
        TEXT(1 - StartWeight/lowerLimit, "0%") & " under weight",
   IF( StartWeight > upperLimit,
         TEXT(1-upperLimit/StartWeight, "0%") & " over weight",
         "Within normal bounds")),
   result
   )

 

@Sergei Baklan 

Oops! Thanks for the tidying up.  I had been called for a meal and clearly didn't pay enough time to checking.

@Peter Bartholomew , hope you enjoyed the meal

@Sergei Baklan @Peter Bartholomew

 

Thanks to both of you for your support, however, I'm lost.

 

Also, I will be adding additional breeds as and when known so the B, C and D columns will increase.

 

To lessen my confusion see below

@UKAndy 

If you don't mind I converted Ideally Weight to Table. With that if you add/remove data no need to change the formula which could be

=INDEX(IdeallyWeight,MATCH(C5,IdeallyWeight[BREED],0),MATCH(C6,IdeallyWeight[#Headers],0))

@Sergei Baklan 

Brilliant!! AWESOME!!

 

However,

 

What does 'Unprotected Formula' relate to?

Also, for reasons the (B10 Kgs to) and (B11 Target date) is not displaying now, on the WeightGoals Tab, this worked out the Kgs difference + or - from the (Start Weight C4) and the (Target Weight C7) and entered it into C10 then used the value in (C8 Kgs per week) to give a target date in C11.

 

So with Doberman selected weight 15.3Kgs, gaining (1Kg per week), it would give a value of (C10 Kgs to 14.2 - 20.7) , which would give (C11 Target Date 16th April to 28th May).

 

It would workout a + or - value for gain or lose weight.

 

I hope I've explained myself fully, I know what I'm looking for in my head, it's putting it down in words.

 

@UKAndy 

I touched nothing but formula.

Unprotected formula - cells in your sheet are unlocked, don't know why. That means if you protect the sheet, these cells will be editable. That's what the alert says about. I locked the cell, but only this very cell, since don't know what is the logic behind unlocking. To lock/unlock select cell(s), Ctrl+1 and choose desired setting in the Protection tab.

image.png

B10 and B11 - not sure what you'd like to display here. Your initial formula is

=IF(COUNT(C4:C7)<2,0,C4-C7)*TypeMult

it counts numbers in C4:C7. Since only Start Wight is the number in the range, it returns 1, thus result is zero. What it shall be here?

best response confirmed by UKAndy (Occasional Contributor)
Solution

@Sergei Baklan 

 

Hi,

 

The Weight Tracker is look great

 

So to explain, taking an Old English, she weighed in at 15.3Kg, her target weight is 23 to 27Kgs

Which means she is between 7Kg and 11.7Kg under her true weight.

 

In C10 it would give the difference from the weight and target weight

 

C11 it would give the date to the target weight in this case 23 to 27Kg if she gains 1 Kg a week, 7 to 11.7 weeks

 

Sorry if am not explaining myself right.2021-01-12_14-24-43.jpg

 

 

 

@UKAndy , I'll try, but on which version of Excel you are, do you have LET() function available?

@UKAndy 

Somewhere above I noticed that @Sergei Baklan had recommended the conversion of your reference data to a Table.  I would recommend the same but I take it further.  I use Tables and structured references and try to avoid any direct referencing using cell addresses.  In the workbook that Sergei was kind enough to correct I had converted the data to a table but it wasn't obvious because I tend to remove the stripes and filters.

 

I have had an idea for comparing the animal weight with a band of normal weight that does not depend upon constructs with nested IFs.  If you consider the 3 weights, breed maximum, breed minimum and actual weight, the formula

= MEDIAN( actual, minimum, maximum )

will return the closest bound.  The percentage over/underweight is then given by

= StartWeight/result - 1

If you introduce number formatting to the result, you can add the "over/underweight" to the displayed value, depending upon the sign of the result.  If the dog's weight is "Within normal bounds", the formula will give zero and the appropriate message displayed.

 

p.s. Glad to see from the later document that my Newfoundland dog is spot on target!